Skip to content

Commit

Permalink
fix: Publish step in wokflow never reached
Browse files Browse the repository at this point in the history
  • Loading branch information
hughlv committed Aug 24, 2024
1 parent 9f710f1 commit 9c1596e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ jobs:
pip install python-semantic-release toml
- name: Python Semantic Release
uses: python-semantic-release/[email protected] # Updated to match example version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # Changed to use 'with' instead of 'env'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Publish with Maturin
if: steps.semantic_release.outputs.released == 'true' # Only run if a release was made
if: steps.release.outputs.released == 'true'
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: maturin publish --username __token__ --password $MATURIN_PASSWORD
run: |
maturin build --release
maturin publish --username __token__ --password $MATURIN_PASSWORD

0 comments on commit 9c1596e

Please sign in to comment.