-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Publish step in wokflow never reached
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |