diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 94fc9e6..29d47c3 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -8,6 +8,10 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies run: npm install + - name: Write signing key + run: echo "$SIGNING_KEY" > key.pem + env: + SIGNING_KEY: ${{secrets.SIGNING_KEY}} - name: Build extension run: ./build.sh - name: Upload extension diff --git a/build.sh b/build.sh index 7d38385..e66c56b 100755 --- a/build.sh +++ b/build.sh @@ -2,5 +2,5 @@ set -e rm -rf out proxy-settings.crx npx tsc -cp manifest.json *.html out +cp manifest.json ./*.html out npx crx3 -p key.pem -o proxy-settings.crx out