Skip to content

Commit efe5b7f

Browse files
committed
deb-sign: Download the build artifact by name
1 parent 0227408 commit efe5b7f

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/deb-sign.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: 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

87
on:
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
@@ -28,9 +32,13 @@ jobs:
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: |

.github/workflows/dkms-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)