File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -76,18 +76,29 @@ To also upload to PyPI:
76
76
77
77
` ` ` yaml
78
78
jobs :
79
- check-publish -package :
80
- name : Build, inspect, and upload our package to PyPI .
79
+ build -package :
80
+ name : Build and inspect package.
81
81
runs-on : ubuntu-latest
82
82
83
83
steps :
84
84
- uses : actions/checkout@v4
85
85
- uses : hynek/build-and-inspect-python-package@v2
86
- id : build
86
+
87
+
88
+ upload-to-pypi :
89
+ name : Upload prebuilt package to PyPI
90
+ needs : build-package
91
+ runs-on : ubuntu-latest
92
+ permissions :
93
+ # IMPORTANT: this permission is mandatory for trusted publishing, but
94
+ # should NOT be granted anywhere else!
95
+ id-token : write
96
+
97
+ steps :
87
98
- name : Download built artifact to dist/
88
99
uses : actions/download-artifact@v4
89
100
with :
90
- name : ${{ steps.build.outputs.artifact-name }}
101
+ name : Packages
91
102
path : dist
92
103
- uses : pypa/gh-action-pypi-publish@release/v1
93
104
` ` `
You can’t perform that action at this time.
0 commit comments