Skip to content

Commit

Permalink
Fixed github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicklesworthstone committed Sep 13, 2024
1 parent 92abe4a commit 3fcb17d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Install Rust and Cargo
- name: Install Rust
Expand All @@ -26,7 +26,7 @@ jobs:
override: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -37,7 +37,7 @@ jobs:
run: maturin build --release

- name: Upload wheel
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
path: target/wheels/*.whl
Expand All @@ -48,17 +48,19 @@ jobs:

steps:
- name: Download all wheels
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: wheels
pattern: wheels-*
merge-multiple: true

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install twine
run: pip install twine

- name: Publish to PyPI
run: twine upload wheels/*/*.whl --username "__token__" --password ${{ secrets.PYPI_API_TOKEN }}
run: twine upload wheels/*/*.whl --username "__token__" --password ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 3fcb17d

Please sign in to comment.