1 Commits
Author SHA1 Message Date
JiJi 5839537f56 feat: use Trusted Publisher Management instead of API Token 2026-05-15 22:46:47 +08:00
@@ -1,4 +1,4 @@
name: CI name: Publish to PyPI
on: on:
push: push:
@@ -18,6 +18,11 @@ jobs:
publish-pypi: publish-pypi:
name: Publish to PyPI name: Publish to PyPI
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pdfuck
permissions:
id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -26,6 +31,3 @@ jobs:
- run: uv build - run: uv build
- name: Publish a Python distribution to PyPI - name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}