We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af60e1d commit 13ce607Copy full SHA for 13ce607
1 file changed
.github/workflows/deploy.yml
@@ -9,9 +9,14 @@ jobs:
9
build-and-publish:
10
name: Build and publish to PyPI
11
runs-on: ubuntu-latest
12
+ environment: release
13
+ permissions:
14
+ # IMPORTANT: this permission is mandatory for trusted publishing
15
+ id-token: write
16
17
steps:
- - uses: actions/checkout@master
18
+ - name: Checkout source code
19
+ uses: actions/checkout@v4
20
21
- name: Set up Python
22
uses: actions/setup-python@v4
@@ -28,10 +33,8 @@ jobs:
28
33
hatch build
29
34
30
35
- name: Publish distribution to PyPI
31
- uses: pypa/gh-action-pypi-publish@v1.4.2
36
+ uses: pypa/gh-action-pypi-publish@release/v1
32
37
with:
- user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
38
packages_dir: dist
39
verbose: true
40
0 commit comments