Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
permissions:
contents: read
issues: write
id-token: write # Required for Trusted Publishing.
steps:
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
with:
Expand Down Expand Up @@ -145,14 +146,10 @@ jobs:
done
env:
APIX_BOT_GPG_PASSPHRASE: ${{ secrets.APIX_BOT_GPG_PASSPHRASE }}

- name: Upload to PyPI
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
pip install twine
twine upload dist/python/*.whl dist/python/*.tar.gz
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: Did we have to configure anything from PiPy side? (https://docs.pypi.org/trusted-publishers/adding-a-publisher/)

Copy link
Member Author

@lantoli lantoli Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, enable Trusted Publishing with the repo name and release.yml GH file

with:
packages-dir: dist/python/
release_nuget:
name: Publish to NuGet Gallery
needs: release
Expand Down
Loading