Skip to content

Commit

Permalink
Release only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanserre committed Nov 25, 2024
1 parent e0461af commit a18b5cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:

release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [ build_dist, build_wheels_unix ]
steps:
Expand All @@ -80,7 +81,6 @@ jobs:
path: dist
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "Release ${{ github.ref }}"
files: |
Expand All @@ -91,7 +91,6 @@ jobs:
python-version: "3.13"

- name: Upload to PyPI
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: ${{ secrets.PYPI_TOKEN_NAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit a18b5cb

Please sign in to comment.