Skip to content

Commit 6f58118

Browse files
committed
👷 pypi trusted release
1 parent 7aa7b3f commit 6f58118

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ on:
44
release:
55
types:
66
- published
7+
workflow_dispatch:
78
concurrency:
89
group: ${{ github.workflow }}
910
jobs:
1011
pypi-publish:
1112
name: PyPI
1213
if: github.repository_owner == 'juftin'
1314
runs-on: ubuntu-latest
15+
environment:
16+
name: pypi
17+
url: https://pypi.org/p/camply
18+
permissions:
19+
id-token: write
1420
steps:
1521
- name: Check out the repository
1622
uses: actions/checkout@v4
@@ -29,10 +35,7 @@ jobs:
2935
run: |
3036
hatch build
3137
- name: Publish package on PyPI
32-
uses: pypa/[email protected]
33-
with:
34-
user: __token__
35-
password: ${{ secrets.PYPI_TOKEN }}
38+
uses: pypa/gh-action-pypi-publish@release/v1
3639

3740
docker-hub-publish:
3841
name: docker-hub

0 commit comments

Comments
 (0)