Skip to content

Commit 4f9b912

Browse files
committed
fix CI workflows for publishing releases
1 parent 9189e86 commit 4f9b912

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/binary-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
if-no-files-found: error
126126

127127
create-release:
128-
if: startswith(github.ref, 'refs/tagsv')
128+
if: startswith(github.ref, 'refs/tags')
129129
runs-on: ubuntu-latest
130130
needs: [create-assets]
131131
permissions:

.github/workflows/python-packaging.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ jobs:
8686
with:
8787
python-version: '3.x'
8888
architecture: ${{ matrix.target }}
89-
- name: Increment version
90-
if: startsWith(github.ref, 'refs/tags/')
91-
run: python .github/workflows/replace_version_spec.py --new-version=${{ github.ref_name }}
9289
- name: Build wheels
9390
uses: PyO3/maturin-action@v1
9491
with:
@@ -150,7 +147,7 @@ jobs:
150147
- name: Publish to PyPI
151148
uses: PyO3/maturin-action@v1
152149
env:
153-
# This workflow id registered as a trusted publisher (for test-pypi and pypi).
150+
# This workflow is registered as a trusted publisher (for test-pypi and pypi).
154151
# A token should not be required (and actually is discouraged with trusted publishers).
155152
# MATURIN_PYPI_TOKEN: ${{ contains(github.ref_name, 'rc') && secrets.TEST_PYPI_API_TOKEN || secrets.PYPI_API_TOKEN }}
156153
MATURIN_REPOSITORY: ${{ contains(github.ref_name, 'rc') && 'test-pypi' || 'pypi' }}

0 commit comments

Comments
 (0)