Skip to content

Commit 574949d

Browse files
committed
updated to the latest pypi-publish.yml pattern AND with Trusted Publisher Management activated on pypi/pyadtpulse
1 parent a6b3077 commit 574949d

File tree

1 file changed

+10
-26
lines changed

1 file changed

+10
-26
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
1-
name: Upload Release to PyPi
2-
3-
on:
4-
release:
5-
types: [published]
6-
7-
permissions:
8-
contents: read
9-
101
jobs:
11-
deploy:
2+
pypi-publish:
3+
name: Upload release to PyPI
124
runs-on: ubuntu-latest
13-
5+
environment:
6+
name: pypi
7+
url: https://pypi.org/p/pyadtpulse
8+
permissions:
9+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1410
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Setup uv
18-
uses: astral-sh/setup-uv@v6
19-
with:
20-
version: "latest"
21-
22-
- name: Build package
23-
run: |
24-
uv build
11+
# retrieve your distributions here
2512

26-
- name: Publish to PyPi
27-
run: |
28-
uv publish
29-
env:
30-
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
13+
- name: Publish package distributions to PyPI
14+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)