mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: Publish packages using Trusted Publisher
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
6e66a7d4b2
commit
5086c9ccc3
1 changed files with 4 additions and 5 deletions
9
.github/workflows/python-publish.yml
vendored
9
.github/workflows/python-publish.yml
vendored
|
|
@ -20,6 +20,9 @@ jobs:
|
|||
deploy:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
environment: release
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue