Skip to content

Commit 7556757

Browse files
committed
Create GitHub release for tagged commits
1 parent 9b5da82 commit 7556757

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,26 @@ jobs:
4949
- uses: pypa/gh-action-pypi-publish@release/v1
5050
with:
5151
print-hash: true
52+
github-release:
53+
if: github.ref_type == 'tag'
54+
runs-on: ubuntu-latest
55+
needs: build
56+
permissions:
57+
contents: write
58+
id-token: write
59+
steps:
60+
- uses: actions/download-artifact@v4
61+
with:
62+
name: Packages
63+
path: dist
64+
- uses: sigstore/[email protected]
65+
with:
66+
inputs: dist/*
67+
- run: >
68+
gh release create "${{ github.ref }}" dist/*
69+
--target "${{ github.sha }}"
70+
--generate-notes
71+
--verify-tag
72+
--prerelease
73+
--draft
5274
...

0 commit comments

Comments
 (0)