Skip to content

Commit e7ac86f

Browse files
committed
chore:update publishing
1 parent ef44b53 commit e7ac86f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,28 @@ on:
1313
types: [published]
1414

1515
jobs:
16-
deploy:
16+
publish:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
20+
1821
steps:
1922
- uses: actions/checkout@v4
2023
- name: Set up Python
2124
uses: actions/setup-python@v5
2225
with:
2326
python-version: '3.11'
2427
cache-dependency-path: poetry.lock
28+
2529
- name: Install dependencies
2630
run: |
2731
python -m pip install --upgrade pip
2832
pip install build
33+
2934
- name: Build package
3035
run: python -m build
31-
- name: Publish package
36+
37+
- name: Publish package to pypi
3238
uses: pypa/gh-action-pypi-publish@v1.8.14
3339
with:
34-
user: __token__
35-
password: ${{ secrets.PYPI_API_TOKEN }}
40+
print_hash: true

0 commit comments

Comments
 (0)