Skip to content

Commit cfb820d

Browse files
committed
chore: auto-sign extension
1 parent 2fba75f commit cfb820d

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,34 @@ jobs:
2626
name: extension-${{ github.sha }}
2727
path: workspace/extension/build/svelte-devtools.zip
2828

29+
# TODO: upload zip to GitHub releases
30+
31+
sign:
32+
runs-on: ubuntu-latest
33+
needs: bundle
34+
# TODO: web-ext sign fails if version already exists, find another way to check
35+
if: success() && startsWith(github.event.head_commit.message, '~ v')
36+
37+
steps:
38+
- uses: pnpm/action-setup@v4
39+
- uses: actions/download-artifact@v4
40+
with:
41+
name: extension-${{ github.sha }}
42+
43+
- run: pnpm dlx web-ext sign --channel unlisted --api-key ${{ secrets.WEB_EXT_API_KEY }} --api-secret ${{ secrets.WEB_EXT_API_SECRET }}
44+
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: extension-${{ github.sha }}
48+
49+
# TODO: upload signed extension to GitHub releases
50+
51+
# TODO: publish to Chrome Web Store
2952
# publish:
3053
# runs-on: ubuntu-latest
3154
# needs: bundle
3255

3356
# steps:
34-
# - uses: actions/download-artifact@v3
57+
# - uses: actions/download-artifact@v4
3558
# with:
3659
# name: extension-${{ github.sha }}

0 commit comments

Comments
 (0)