Skip to content

Commit 90fae5d

Browse files
authored
Upload Release Attestations (#13917)
1 parent f17fc8b commit 90fae5d

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,53 @@ jobs:
7474
with:
7575
fetch-depth: 50
7676

77-
- uses: ./.github/workflows/release_pre_built
77+
- name: "Build Release"
78+
uses: ./.github/workflows/release_pre_built
7879
with:
7980
otp_version: ${{ matrix.otp_version }}
8081
otp: ${{ matrix.otp }}
8182
build_docs: ${{ matrix.build_docs }}
8283

83-
- uses: actions/attest-build-provenance@v1
84+
- name: "Attest release .exe provenance"
85+
uses: actions/attest-build-provenance@v1
86+
id: attest-exe-provenance
8487
with:
85-
subject-path: 'elixir-otp-${{ matrix.otp }}.*'
88+
subject-path: 'elixir-otp-${{ matrix.otp }}.exe'
89+
- name: "Copy release .exe provenance"
90+
run: cp "$ATTESTATION" elixir-otp-${{ matrix.otp }}.exe.sigstore
91+
env:
92+
ATTESTATION: "${{ steps.attest-exe-provenance.outputs.bundle-path }}"
93+
94+
- name: "Attest release .zip provenance"
95+
uses: actions/attest-build-provenance@v1
96+
id: attest-zip-provenance
97+
with:
98+
subject-path: 'elixir-otp-${{ matrix.otp }}.zip'
99+
- name: "Copy release .zip provenance"
100+
run: cp "$ATTESTATION" elixir-otp-${{ matrix.otp }}.zip.sigstore
101+
env:
102+
ATTESTATION: "${{ steps.attest-zip-provenance.outputs.bundle-path }}"
86103

87-
- uses: actions/attest-build-provenance@v1
104+
- name: "Attest docs provenance"
105+
uses: actions/attest-build-provenance@v1
106+
id: attest-docs-provenance
88107
if: ${{ matrix.build_docs }}
89108
with:
90-
subject-path: 'Docs.*'
109+
subject-path: 'Docs.zip'
110+
- name: "Copy docs provenance"
111+
if: ${{ matrix.build_docs }}
112+
run: cp "$ATTESTATION" Docs.zip.sigstore
113+
env:
114+
ATTESTATION: "${{ steps.attest-docs-provenance.outputs.bundle-path }}"
91115

92-
- uses: actions/upload-artifact@v4
116+
- name: "Upload release artifacts"
117+
uses: actions/upload-artifact@v4
93118
with:
94119
name: elixir-otp-${{ matrix.otp }}
95120
path: elixir-otp-${{ matrix.otp }}*
96121

97-
- uses: actions/upload-artifact@v4
122+
- name: "Upload doc artifacts"
123+
uses: actions/upload-artifact@v4
98124
if: ${{ matrix.build_docs }}
99125
with:
100126
name: Docs
@@ -145,10 +171,13 @@ jobs:
145171
"$tag" \
146172
elixir-otp-*.zip \
147173
elixir-otp-*.zip.sha{1,256}sum \
174+
elixir-otp-*.zip.sigstore \
148175
elixir-otp-*.exe \
149176
elixir-otp-*.exe.sha{1,256}sum \
177+
elixir-otp-*.exe.sigstore \
150178
Docs.zip \
151-
Docs.zip.sha{1,256}sum
179+
Docs.zip.sha{1,256}sum \
180+
Docs.zip.sigstore
152181
153182
upload-builds-hex-pm:
154183
needs: build

0 commit comments

Comments
 (0)