From d825b27f5924c85faa7c93e2c938b42ac3d9c227 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 8 Dec 2022 18:37:36 +0300 Subject: [PATCH] Feat(GHActions): Publish wheels to Github Releases --- .../.github/workflows/test-publish.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/project_template/.github/workflows/test-publish.yaml b/project_template/.github/workflows/test-publish.yaml index 5242df7..a66ab6e 100644 --- a/project_template/.github/workflows/test-publish.yaml +++ b/project_template/.github/workflows/test-publish.yaml @@ -1,7 +1,7 @@ name: Test, build, publish # Run tests (all branches), -# for tags build wheels, publish wheels to PyPI. +# for tags build wheels, publish wheels to PyPI and Github Releases. on: [push, pull_request] @@ -75,3 +75,17 @@ jobs: env: TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + - name: Publish wheel to Releases + uses: ncipollo/release-action@v1 + with: + artifacts: "dist/*" + allowUpdates: true + bodyFile: "LATEST-CHANGES.rst" + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + omitPrereleaseDuringUpdate: true + prerelease: false + replacesArtifacts: false + skipIfReleaseExists: false + updateOnlyUnreleased: false + if: ${{ startsWith(github.ref, 'refs/tags/') }} -- 2.39.2