Skip to content

Commit fed6df0

Browse files
committed
0.3.0 - upgrade pypi publish
Upgrade the PYPI python publish workflow to the new standard.
1 parent 16c70fd commit fed6df0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ permissions:
1717

1818
jobs:
1919
deploy:
20-
20+
name: upload release to PyPI
2121
runs-on: ubuntu-latest
22+
# Specifying a GitHub environment is optional, but strongly encouraged
23+
environment: release
24+
permissions:
25+
# IMPORTANT: this permission is mandatory for trusted publishing
26+
id-token: write
2227

2328
steps:
2429
- uses: actions/checkout@v4
@@ -50,8 +55,5 @@ jobs:
5055
cmd: build
5156
- name: Build package
5257
run: python -m build
53-
- name: Publish package
54-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
55-
with:
56-
user: __token__
57-
password: ${{ secrets.PYPI_API_TOKEN }}
58+
- name: Publish package distributions to PyPI
59+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)