Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

env:
CRX_VER: v0.0.0-${{ github.sha }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

jobs:
build:
Expand Down Expand Up @@ -46,11 +47,15 @@ jobs:
git archive --format tar.gz HEAD -o "${{ github.workspace }}/release/source.tar.gz"

- name: Build Chrome Extension
env:
SENTRY_RELEASE: ${{ env.CRX_VER }}
run: |
npm run build
cd "${{ github.workspace }}/dist/" && zip -r "${{ github.workspace }}/release/crx.zip" ./

- name: Build Firefox Add-ons
env:
SENTRY_RELEASE: ${{ env.CRX_VER }}
run: |
npm run build:firefox
cd "${{ github.workspace }}/dist/" && zip -r "${{ github.workspace }}/release/firefox.zip" ./
Expand Down Expand Up @@ -80,6 +85,29 @@ jobs:
with:
files: ${{ github.workspace }}/release/*

release-chrome:
name: Publish on Chrome
if: ${{ github.ref_type == 'tag' }}
runs-on: ubuntu-latest
needs:
- build

steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: Proxyverse
path: ${{ github.workspace }}/release/

- name: Upload to Chrome Web Store
uses: wdzeng/chrome-extension@v1
with:
extension-id: igknmaflmijecdmjpcgollghmipkfbho
Comment thread
SYM01 marked this conversation as resolved.
zip-path: ${{ github.workspace }}/release/crx.zip
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}

release-edge:
name: Publish on Edge
if: ${{ github.ref_type == 'tag' }}
Expand Down
Loading