Skip to content

Commit 4403d09

Browse files
committed
draft release on specific commit
1 parent ace4abd commit 4403d09

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- id: extract
1717
working-directory: ./workspace/extension/static
18-
run: echo version=v$(jq -r '.version' manifest.json) >> $GITHUB_OUTPUT
18+
run: echo version=$(jq -r '.version' manifest.json) >> $GITHUB_OUTPUT
1919

2020
bundle:
2121
runs-on: ubuntu-latest
@@ -38,8 +38,12 @@ jobs:
3838
name: extension-${{ github.sha }}
3939
path: workspace/extension/build/svelte-devtools.zip
4040

41-
- run: echo ${{ needs.manifest.outputs.version }}
42-
# - run: gh release create --draft
41+
- if: github.event.head_commit.message == '~ v${{ needs.manifest.outputs.version }}'
42+
run: | # https://cli.github.com/manual/gh_release_create
43+
gh release create v${{ needs.manifest.outputs.version }} \
44+
workspace/extension/build/svelte-devtools.zip \
45+
--title ${{ needs.manifest.outputs.version }} \
46+
--draft --generate-notes
4347
4448
# publish:
4549
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)