Skip to content

Commit 5c3e186

Browse files
committed
feat: publish releases on GitHub
1 parent aff01ac commit 5c3e186

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/setup.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ jobs:
9494
- run: uvx check-wheel-contents dist/*.whl
9595
- run: uvx check-manifest -v
9696

97-
publish:
98-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
97+
release_pypi:
98+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'WeblateOrg/siphashc'
99+
name: Publish release to PyPI
99100
needs:
100101
- check
101102
runs-on: ubuntu-24.04
@@ -113,5 +114,24 @@ jobs:
113114
version: 0.9.7
114115
- name: Publish package distributions to PyPI
115116
run: uv publish --trusted-publishing always
117+
118+
release_github:
119+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'WeblateOrg/siphashc'
120+
runs-on: ubuntu-24.04
121+
name: Create release on GitHub
122+
permissions:
123+
contents: write
124+
needs:
125+
- check
126+
steps:
127+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
128+
with:
129+
name: dist
130+
path: dist
131+
- uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
132+
with:
133+
generateReleaseNotes: true
134+
artifacts: dist/*
135+
116136
permissions:
117137
contents: read

0 commit comments

Comments
 (0)