File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 47
47
working-directory : ${{ github.workspace }}/test-runner
48
48
env :
49
49
REGISTRY : ${{ secrets.REGISTRY }}
50
+
51
+ build :
52
+ name : Build wheel
53
+ runs-on : ubuntu-latest
54
+ permissions :
55
+ id-token : write
56
+ attestations : write
57
+ contents : read
58
+ strategy :
59
+ fail-fast : false
60
+ matrix :
61
+ python-version :
62
+ - " 3.12"
63
+ steps :
64
+ - name : Harden Runner
65
+ uses : step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
66
+ with :
67
+ egress-policy : audit
68
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
69
+ - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
70
+ with :
71
+ python-version : ${{ matrix.python-version }}
72
+ cache : ' pip'
73
+ - name : Install dependencies
74
+ run : |
75
+ python -m pip install --upgrade pip setuptools wheel build
76
+ - name : Build
77
+ run : |
78
+ python -m build .
79
+ - name : Get built filenames
80
+ id : filename
81
+ run : |
82
+ echo "tar=$(cd dist/ && echo *.tar.gz)" >> $GITHUB_OUTPUT
83
+ echo "whl=$(cd dist/ && echo *.tar.gz)" >> $GITHUB_OUTPUT
84
+ - name : Attest Build Provenance for tar
85
+ uses : actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
86
+ with :
87
+ subject-path : " dist/${{ steps.filename.outputs.tar }}"
88
+ - name : Attest Build Provenance for whl
89
+ uses : actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0
90
+ with :
91
+ subject-path : " dist/${{ steps.filename.outputs.whl }}"
You can’t perform that action at this time.
0 commit comments