From: Oleg Broytman Date: Thu, 8 Dec 2022 15:37:36 +0000 (+0300) Subject: Feat(GHActions): Publish wheels to Github Releases X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d825b27f5924c85faa7c93e2c938b42ac3d9c227;p=cookiecutter.git Feat(GHActions): Publish wheels to Github Releases --- 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/') }}