Skip to content

Commit

Permalink
update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzeyi committed Nov 6, 2024
1 parent 0d82d03 commit b7665f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: "true"
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Recursive checkout
uses: actions/checkout@v3
Expand All @@ -40,7 +43,4 @@ jobs:
- name: Build package
run: python -m build --sdist -n
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit b7665f5

Please sign in to comment.