Skip to content

Commit 3cce99e

Browse files
RobinPicardrlouf
authored andcommitted
Fix issue publish workflow + restore maturin for upload
1 parent 3ed0632 commit 3cce99e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/actions/bump_version/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ runs:
1111
# To fetch all the tags and history
1212
with:
1313
fetch-depth: 0
14+
clean: false
1415

1516
- name: Bump version in Cargo.toml
1617
run: |

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- uses: dtolnay/rust-toolchain@master
3838
with:
3939
toolchain: stable
40+
4041
- uses: Swatinem/rust-cache@v2
4142

4243
- name: Bump version in Cargo.toml
@@ -51,11 +52,13 @@ jobs:
5152
ls -la
5253
ls -la dist
5354
54-
- name: Publish to PyPi
55-
uses: pypa/gh-action-pypi-publish@v1.4.2
55+
- name: Publish to PyPI
56+
uses: PyO3/maturin-action@v1
57+
env:
58+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_SECRET}}
5659
with:
57-
user: __token__
58-
password: ${{ secrets.PYPI_SECRET }}
60+
command: upload
61+
args: --non-interactive --skip-existing dist/*
5962

6063
- name: Publish to crates.io
6164
env:

0 commit comments

Comments
 (0)