File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
jobs :
9
+ manifest :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ version : ${{ steps.extract.outputs.version }}
13
+
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - id : extract
17
+ working-directory : ./workspace/extension/static
18
+ run : echo "version=$(jq -r '.version' manifest.json)" >> $GITHUB_OUTPUT
19
+
9
20
bundle :
10
21
runs-on : ubuntu-latest
22
+ needs : manifest
11
23
12
24
steps :
13
25
- uses : actions/checkout@v4
26
38
name : extension-${{ github.sha }}
27
39
path : workspace/extension/build/svelte-devtools.zip
28
40
41
+ - if : |
42
+ github.repository == 'sveltejs/svelte-devtools' &&
43
+ github.event_name == 'push' && github.ref == 'refs/heads/master' &&
44
+ startsWith(github.event.head_commit.message, format('~ v{0}', needs.manifest.outputs.version))
45
+ env:
46
+ GH_TOKEN: ${{ github.token }}
47
+ run: | # https://cli.github.com/manual/gh_release_create
48
+ gh release create v${{ needs.manifest.outputs.version }} \
49
+ workspace/extension/build/svelte-devtools.zip \
50
+ --title ${{ needs.manifest.outputs.version }} \
51
+ --draft --generate-notes --notes '
52
+ Built from ${{ github.event.head_commit.id }} at https://github.com/sveltejs/svelte-devtools/actions/runs/${{ github.run_id }}
53
+ - Chrome Web Store: https://chrome.google.com/webstore/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
54
+ - Firefox Signed Add-on: https://github.com/sveltejs/svelte-devtools/releases/download/v${{ needs.manifest.outputs.version }}/svelte-devtools.xpi
55
+ ---'
56
+
29
57
# publish:
30
58
# runs-on: ubuntu-latest
31
59
# needs: bundle
You can’t perform that action at this time.
0 commit comments