Skip to content

Commit

Permalink
Merge pull request #68 from astropy/saimn-patch-1
Browse files Browse the repository at this point in the history
Fix upload condition
  • Loading branch information
saimn authored Nov 19, 2021
2 parents 3e909d9 1833294 commit 0473412
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 50,8 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
# upload to PyPI on every tag
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 0473412

Please sign in to comment.