| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- name: Release for Edge
- on:
- workflow_dispatch:
- push:
- tags:
- - v*
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v1 # v1 keeps tags
- with:
- fetch-depth: 250 # for `action-helper`
- # persist-credentials: false # not implemented in v1
- - uses: actions/setup-node@v3
- with:
- node-version: '20'
- - name: Prepare
- run: yarn && node scripts/action-helper.js
- env:
- ACTION_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- DISCORD_WEBHOOK_RELEASE: ${{ secrets.DISCORD_WEBHOOK_RELEASE }}
- - name: Build
- env:
- SYNC_DROPBOX_CLIENT_ID: ${{ secrets.SYNC_DROPBOX_CLIENT_ID }}
- SYNC_GOOGLE_DESKTOP_ID: ${{ secrets.SYNC_GOOGLE_DESKTOP_ID }}
- SYNC_GOOGLE_DESKTOP_SECRET: ${{ secrets.SYNC_GOOGLE_DESKTOP_SECRET }}
- SYNC_ONEDRIVE_CLIENT_ID: ${{ secrets.SYNC_ONEDRIVE_CLIENT_ID }}
- run: |
- mkdir -p $ASSETS_DIR
- yarn build
- cd dist && zip -r ../$ASSETS_DIR/$ASSET_ZIP . && cd ..
- - uses: denoland/setup-deno@v2
- with:
- deno-version: v2.x
- - name: Publish to Edge
- run: |
- if [ "$PRERELEASE" != "true" ]; then
- deno run -A https://raw.githubusercontent.com/violentmonkey/publish-edge-ext/main/main.ts $ASSETS_DIR/$ASSET_ZIP
- else
- echo Skip BETA for Edge
- fi
- env:
- CLIENT_ID: ${{ secrets.EDGE_CLIENT_ID }}
- API_KEY: ${{ secrets.EDGE_API_KEY }}
- PRODUCT_ID: ${{ secrets.EDGE_PRODUCT_ID }}
|