File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build :
8+ name : Build wheel and sdist
9+ runs-on : ubuntu-24.04
10+ outputs :
11+ name : ${{ steps.baipp.outputs.package_name }}
12+ version : ${{ steps.baipp.outputs.package_version }}
13+ steps :
14+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15+ - uses : hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
16+ id : baipp
17+
18+ publish :
19+ name : Publish to PyPI
20+ if : startsWith(github.ref, 'refs/tags/')
21+ runs-on : ubuntu-24.04
22+ needs : [build]
23+ environment :
24+ name : pypi
25+ url : https://pypi.org/project/${{ needs.build.outputs.name }}/${{ needs.build.outputs.version }}
26+ permissions :
27+ id-token : write # IMPORTANT: mandatory for trusted publishing
28+
29+ steps :
30+ - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
31+ with :
32+ name : Packages
33+ path : dist
34+ - uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
You can’t perform that action at this time.
0 commit comments