Skip to content

Commit

Permalink
cicd: chore to publish py and crates
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckland committed May 26, 2024
1 parent 3641e96 commit 959ebf1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/python-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ jobs:
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
- uses: actions/setup-python@v2
- name: Publish to PyPi
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
MATURIN_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
twine upload --skip-existing wheels-*/*
11 changes: 11 additions & 0 deletions .github/workflows/rust-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@ jobs:
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
- run: echo "🍏 This job's status is ${{ job.status }}."

# publsh to crates.io

- uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_IO_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit 959ebf1

Please sign in to comment.