Skip to content

Commit 0103b49

Browse files
committed
finalize
1 parent d166d71 commit 0103b49

File tree

1 file changed

+23
-33
lines changed

1 file changed

+23
-33
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,47 +38,37 @@ jobs:
3838
name: extension-${{ github.sha }}
3939
path: workspace/extension/build/svelte-devtools.zip
4040

41-
sign:
41+
publish:
4242
runs-on: ubuntu-latest
4343
needs: [manifest, bundle]
4444

45-
# if: |
46-
# github.repository == 'sveltejs/svelte-devtools' &&
47-
# github.event_name == 'push' && github.ref == 'refs/heads/master' &&
48-
# startsWith(github.event.head_commit.message, format('~ v{0}', needs.manifest.outputs.version))
45+
if: |
46+
github.repository == 'sveltejs/svelte-devtools' &&
47+
github.event_name == 'push' && github.ref == 'refs/heads/master' &&
48+
startsWith(github.event.head_commit.message, format('~ v{0}', needs.manifest.outputs.version))
4949
5050
steps:
5151
- uses: actions/checkout@v4
5252
- uses: pnpm/action-setup@v4
5353
- uses: actions/download-artifact@v4
54-
- working-directory: extension-${{ github.sha }}
55-
run: ls -al
56-
57-
# - working-directory: extension-${{ github.sha }}
58-
# run: |
59-
# pnpm dlx web-ext sign --channel unlisted \
60-
# --api-key ${{ secrets.WEB_EXT_API_KEY }} \
61-
# --api-secret ${{ secrets.WEB_EXT_API_SECRET }}
6254

63-
# - working-directory: extension-${{ github.sha }}
64-
# env:
65-
# GH_TOKEN: ${{ github.token }}
66-
# run: | # https://cli.github.com/manual/gh_release_create
67-
# gh release create v${{ needs.manifest.outputs.version }} \
68-
# svelte-devtools.zip web-ext-artifacts/*.xpi#svelte-devtools.xpi \
69-
# --title ${{ needs.manifest.outputs.version }} \
70-
# --draft --generate-notes --notes '
71-
# Built from ${{ github.event.head_commit.id }} at https://github.com/sveltejs/svelte-devtools/actions/runs/${{ github.run_id }}
72-
# - Chrome Web Store: https://chrome.google.com/webstore/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
73-
# - Firefox Signed Add-on: https://github.com/sveltejs/svelte-devtools/releases/download/v${{ needs.manifest.outputs.version }}/svelte-devtools.xpi
74-
# ---'
55+
- working-directory: extension-${{ github.sha }}
56+
run: |
57+
pnpm dlx web-ext sign --channel unlisted \
58+
--api-key ${{ secrets.WEB_EXT_API_KEY }} \
59+
--api-secret ${{ secrets.WEB_EXT_API_SECRET }}
7560
76-
# TODO: publish to Chrome Web Store
77-
# publish:
78-
# runs-on: ubuntu-latest
79-
# needs: bundle
61+
- working-directory: extension-${{ github.sha }}
62+
env:
63+
GH_TOKEN: ${{ github.token }}
64+
run: | # https://cli.github.com/manual/gh_release_create
65+
gh release create v${{ needs.manifest.outputs.version }} \
66+
svelte-devtools.zip web-ext-artifacts/*.xpi#svelte-devtools.xpi \
67+
--title ${{ needs.manifest.outputs.version }} \
68+
--draft --generate-notes --notes '
69+
Built from ${{ github.event.head_commit.id }} at https://github.com/sveltejs/svelte-devtools/actions/runs/${{ github.run_id }}
70+
- Chrome Web Store: https://chrome.google.com/webstore/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
71+
- Firefox Signed Add-on: https://github.com/sveltejs/svelte-devtools/releases/download/v${{ needs.manifest.outputs.version }}/svelte-devtools.xpi
72+
---'
8073
81-
# steps:
82-
# - uses: actions/download-artifact@v4
83-
# with:
84-
# name: extension-${{ github.sha }}
74+
# TODO: publish to Chrome Web Store

0 commit comments

Comments
 (0)