|
16 | 16 |
|
17 | 17 | env:
|
18 | 18 | CRX_VER: v0.0.0-${{ github.sha }}
|
| 19 | + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} |
19 | 20 |
|
20 | 21 | jobs:
|
21 | 22 | build:
|
@@ -46,11 +47,15 @@ jobs:
|
46 | 47 | git archive --format tar.gz HEAD -o "${{ github.workspace }}/release/source.tar.gz"
|
47 | 48 |
|
48 | 49 | - name: Build Chrome Extension
|
| 50 | + env: |
| 51 | + SENTRY_RELEASE: ${{ env.CRX_VER }} |
49 | 52 | run: |
|
50 | 53 | npm run build
|
51 | 54 | cd "${{ github.workspace }}/dist/" && zip -r "${{ github.workspace }}/release/crx.zip" ./
|
52 | 55 |
|
53 | 56 | - name: Build Firefox Add-ons
|
| 57 | + env: |
| 58 | + SENTRY_RELEASE: ${{ env.CRX_VER }} |
54 | 59 | run: |
|
55 | 60 | npm run build:firefox
|
56 | 61 | cd "${{ github.workspace }}/dist/" && zip -r "${{ github.workspace }}/release/firefox.zip" ./
|
|
80 | 85 | with:
|
81 | 86 | files: ${{ github.workspace }}/release/*
|
82 | 87 |
|
| 88 | + release-chrome: |
| 89 | + name: Publish on Chrome |
| 90 | + if: ${{ github.ref_type == 'tag' }} |
| 91 | + runs-on: ubuntu-latest |
| 92 | + needs: |
| 93 | + - build |
| 94 | + |
| 95 | + steps: |
| 96 | + - name: Download artifact |
| 97 | + uses: actions/download-artifact@v4 |
| 98 | + with: |
| 99 | + name: Proxyverse |
| 100 | + path: ${{ github.workspace }}/release/ |
| 101 | + |
| 102 | + - name: Upload to Chrome Web Store |
| 103 | + uses: wdzeng/chrome-extension@v1 |
| 104 | + with: |
| 105 | + extension-id: igknmaflmijecdmjpcgollghmipkfbho |
| 106 | + zip-path: ${{ github.workspace }}/release/crx.zip |
| 107 | + client-id: ${{ secrets.CHROME_CLIENT_ID }} |
| 108 | + client-secret: ${{ secrets.CHROME_CLIENT_SECRET }} |
| 109 | + refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }} |
| 110 | + |
83 | 111 | release-edge:
|
84 | 112 | name: Publish on Edge
|
85 | 113 | if: ${{ github.ref_type == 'tag' }}
|
|
0 commit comments