2 Commits
Author SHA1 Message Date
JiJi 5839537f56 feat: use Trusted Publisher Management instead of API Token 2026-05-15 22:46:47 +08:00
JiJi 09df62a6c8 docs: update readme 2026-05-05 22:37:28 +08:00
3 changed files with 29 additions and 4 deletions
@@ -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 }}
+12
View File
@@ -16,6 +16,18 @@ Before installing, please ensure that you have installed Python (>=3.8) and its
pip install pdfuck pip install pdfuck
``` ```
Or use [uv](https://docs.astral.sh/uv/) to run directly without installing:
```bash
uvx pdfuck
```
Note: If you use this method, subsequent usage will require adding `uvx` before the command. You can also set an alias for easier use:
```bash
alias pdfuck='uvx pdfuck'
```
## Usage ## Usage
### Remove PDF password ### Remove PDF password
+11
View File
@@ -16,6 +16,17 @@
pip install pdfuck pip install pdfuck
``` ```
或使用 [uv](https://docs.astral.sh/uv/) 直接运行,无需安装:
```bash
uvx pdfuck
```
注意:如果您使用此方法,那么后续的用法都需要在命令前添加 `uvx`,您也可以设置别名以更方便地使用:
```bash
alias pdfuck='uvx pdfuck'
```
## 使用 ## 使用
### 去除 PDF 密码 ### 去除 PDF 密码