File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Sign .deb bundles
22
3- # Bundles every build artifact of the calling run into per-artifact
4- # tarballs, writes SHA256SUMS, signs it with the archive key and
5- # verifies the signature against the published keyring. Uploads the
6- # result as the release-assets artifact.
3+ # Bundles the named build artifact into a tarball, writes SHA256SUMS,
4+ # signs it with the archive key and verifies the signature against the
5+ # published keyring. Uploads the result as the release-assets artifact.
76
87on :
98 workflow_call :
9+ inputs :
10+ artifact :
11+ description : Name of the build artifact to bundle and sign
12+ type : string
13+ required : true
1014 secrets :
1115 ARCHIVE_GPG_SIGNING_KEY :
1216 description : ASCII-armored private signing key, passphrase-less
2832 repository : Kurokesu/ci
2933 sparse-checkout : keys
3034
35+ # Download by explicit name into an explicit directory. A bare
36+ # download-all flattens a single artifact into the path itself,
37+ # which broke the per-artifact glob below.
3138 - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3239 with :
33- path : artifacts/
40+ name : ${{ inputs.artifact }}
41+ path : artifacts/${{ inputs.artifact }}
3442
3543 - name : Bundle assets
3644 run : |
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ jobs:
133133 sign :
134134 needs : build
135135 uses : Kurokesu/ci/.github/workflows/deb-sign.yml@main
136+ with :
137+ artifact : ${{ needs.build.outputs.artifact }}
136138 secrets :
137139 ARCHIVE_GPG_SIGNING_KEY : ${{ secrets.ARCHIVE_GPG_SIGNING_KEY }}
138140
You can’t perform that action at this time.
0 commit comments