File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 types : [created]
66 workflow_dispatch : # run manually from actions tab
77
8- permissions :
9- contents : read
8+ # Set permissions at the job level.
9+ permissions : {}
1010
1111jobs :
12+ build :
13+ name : Build the package
14+ # disables this workflow from running in a repository that is not part of the indicated organization/user
15+ if : github.repository_owner == 'afuetterer'
16+ runs-on : ubuntu-24.04
17+ permissions :
18+ attestations : write
19+ id-token : write
20+ steps :
21+ - run : sudo apt-get install tree # workaround for "tree: command not found" in baipp
22+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
23+ - uses : hynek/build-and-inspect-python-package@4aea7de65ba374f49b5f549cd471b61de2ef19d3 # v2.5.0
24+ with :
25+ attest-build-provenance-github : ' true'
1226 publish :
1327 # disables this workflow from running in a repository that is not part of the indicated organization/user
1428 if : github.repository_owner == 'afuetterer'
@@ -17,13 +31,10 @@ jobs:
1731 permissions :
1832 id-token : write
1933 steps :
20- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
21- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5 .1.0
34+ - name : Download package built by build job
35+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4 .1.7
2236 with :
23- python-version : ' 3.12'
24- cache : pip
25- - name : Install pre-requisites (e.g. hatch)
26- run : python -m pip install --require-hashes --requirement=.github/requirements/ci.txt
27- - run : python -m build --installer=uv
37+ name : Packages
38+ path : dist
2839 - name : Publish package to PyPI
2940 uses : pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
You can’t perform that action at this time.
0 commit comments