Skip to content

Commit 31bc0b9

Browse files
authored
Merge pull request #188 from mkoeppe/gh_actions_fix_pypi
.github/workflows/wheels.yml: Only publish sdist on release tags
2 parents 6c0d008 + 0f4b68d commit 31bc0b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/wheels.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414

1515
sdists_for_pypi:
16-
16+
name: Build sdist (and upload to PyPI on release tags)
1717
runs-on: ubuntu-latest
1818
env:
1919
CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}
@@ -34,7 +34,7 @@ jobs:
3434
password: ${{ secrets.SAGEMATH_PYPI_API_TOKEN }}
3535
skip_existing: true
3636
verbose: true
37-
if: env.CAN_DEPLOY == 'true'
37+
if: env.CAN_DEPLOY == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3838

3939
build_wheels:
4040
name: Build wheels on ${{ matrix.os }}
@@ -57,11 +57,12 @@ jobs:
5757

5858
- uses: actions/upload-artifact@v3
5959
with:
60+
name: wheels
6061
path: ./wheelhouse/*.whl
6162

6263
pypi-publish:
6364
# https://github.com/pypa/gh-action-pypi-publish
64-
name: Upload release to PyPI
65+
name: Upload wheels to PyPI
6566
needs: build_wheels
6667
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6768
runs-on: ubuntu-latest

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.3
1+
1.11.4a0.dev0

0 commit comments

Comments
 (0)