From 5c3e1866103febf7bd8af64ec5a2c21ad1c484eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 3 Nov 2025 09:46:07 +0100 Subject: [PATCH] feat: publish releases on GitHub --- .github/workflows/setup.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 515a8b2..d333ac1 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -94,8 +94,9 @@ jobs: - run: uvx check-wheel-contents dist/*.whl - run: uvx check-manifest -v - publish: - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') + release_pypi: + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'WeblateOrg/siphashc' + name: Publish release to PyPI needs: - check runs-on: ubuntu-24.04 @@ -113,5 +114,24 @@ jobs: version: 0.9.7 - name: Publish package distributions to PyPI run: uv publish --trusted-publishing always + + release_github: + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'WeblateOrg/siphashc' + runs-on: ubuntu-24.04 + name: Create release on GitHub + permissions: + contents: write + needs: + - check + steps: + - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + with: + name: dist + path: dist + - uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0 + with: + generateReleaseNotes: true + artifacts: dist/* + permissions: contents: read