Skip to content

Commit

Permalink
Merge pull request #6 from peytondmurray/fix-dist
Browse files Browse the repository at this point in the history
Fix issue where publish action didn't point to the right directory
  • Loading branch information
mlucool authored Dec 7, 2022
2 parents 0db805d + 56d0633 commit 913b2d9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,13 @@ jobs:
uses: actions/checkout@v3

- name: Set up python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.11'

- if: matrix.os == 'macos' || matrix.os == 'windows'
name: Set up rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- if: matrix.os == 'macos' || matrix.os == 'windows'
name: Set up rust cache
Expand All @@ -89,9 +85,11 @@ jobs:

# Set up rust toolchain on mac os and windows (linux containers handled below)
- if: matrix.os == 'macos'
name: Add aarch64-apple-darwin target
run: rustup target add aarch64-apple-darwin

- if: matrix.os == 'windows'
name: Add i686-pc-windows-msvc target
run: |
rustup toolchain install stable-i686-pc-windows-msvc
rustup target add i686-pc-windows-msvc
Expand Down Expand Up @@ -128,15 +126,18 @@ jobs:
upload_to_pypi:
name: Upload to PYPI
runs-on: ubuntu-latest
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
if: (github.event_name == 'release' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch')
needs: [build_wheels, build_sdist]
steps:
- name: Retrieve wheels and sdist
uses: actions/download-artifact@v3
with:
path: dist

- name: List the build artifacts
run: |
ls -lAs wheels/
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: wheels/

0 comments on commit 913b2d9

Please sign in to comment.