Skip to content

Commit

Permalink
pub
Browse files Browse the repository at this point in the history
  • Loading branch information
tujitu-umn committed Jun 7, 2024
1 parent bcbeb49 commit 579948f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ for wheel in target/wheels/*.whl; do
done

# Move repaired wheels back to target/wheels
mv wheelhouse/*.whl target/wheels/

/opt/python/cp310-cp310/bin/maturin publish --username __token__ --password ${PYPI_API_TOKEN}
mv wheelhouse/*.whl target/wheels/
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ jobs:
container: quay.io/pypa/manylinux2014_x86_64
steps:
- uses: actions/checkout@v1
- name: build and publish
- name: build
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup default stable
bash .github/workflows/build-wheels.sh
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
/opt/python/cp310-cp310/bin/python -m pip install twine
twine upload target/wheels/*

0 comments on commit 579948f

Please sign in to comment.