We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fbec78 commit d794358Copy full SHA for d794358
.github/workflows/dist.yaml
@@ -9,9 +9,14 @@ on:
9
- "v[0-9]+.[0-9]+.[0-9]+"
10
11
jobs:
12
- # Package and distribute to PyPI
13
dist:
+ name: Upload release to PyPI
14
runs-on: ubuntu-latest
15
+ environment:
16
+ name: pypi
17
+ url: https://pypi.org/p/<your-pypi-project-name>
18
+ permissions:
19
+ id-token: write # This permission is mandatory for trusted publishing
20
steps:
21
- uses: actions/checkout@v4
22
- uses: actions/setup-python@v5
@@ -23,5 +28,8 @@ jobs:
23
28
with:
24
29
gha-cache-key: v0-py3.12
25
30
named-caches-hash: ${{ hashFiles('3rdparty/python/default.lock') }}
26
- - run: |
27
- pants publish //:dist
31
+ - name: Build package
32
+ run: |
33
+ pants package //:dist
34
+ - name: Publish package distributions to PyPI
35
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments