Skip to content

Commit

Permalink
pyrofork: Publish packages using Trusted Publisher
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Oct 8, 2024
1 parent 6e66a7d commit 5086c9c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
deploy:

runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -34,8 +37,4 @@ jobs:
- name: Build package
run: hatch build
- name: Publish package
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}
run: |
hatch publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 5086c9c

Please sign in to comment.