Skip to content

Commit

Permalink
ci: fix wheel working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 7, 2024
1 parent 6a0ba24 commit e3e0f30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,18 +222,19 @@ jobs:
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10' }}
rust-toolchain: stable
docker-options: -e CI
working-directory: python

- run: ${{ (matrix.os == 'windows' && 'dir') || 'ls -lh' }} dist/
- run: twine check --strict dist/*
- run: ${{ (matrix.os == 'windows' && 'dir') || 'ls -lh' }} python/dist/
- run: twine check --strict python/dist/*

- uses: actions/upload-artifact@v4
with:
name: nanopub_wheel_${{ matrix.os }}_${{ matrix.target }}_${{ matrix.interpreter || 'all' }}_${{ matrix.manylinux }}
path: dist
path: python/dist

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
run: twine upload dist/*
run: twine upload python/dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit e3e0f30

Please sign in to comment.