55
55
git push origin $ref_name --force
56
56
57
57
build :
58
- needs : create_draft_release
59
58
strategy :
60
59
fail-fast : true
61
60
matrix :
80
79
otp : ${{ matrix.otp }}
81
80
build_docs : ${{ matrix.build_docs }}
82
81
82
+ - name : " Sign files with Trusted Signing"
83
+ if : github.repository == 'elixir-lang/elixir'
84
+
85
+ with :
86
+ azure-tenant-id : ${{ secrets.AZURE_TENANT_ID }}
87
+ azure-client-id : ${{ secrets.AZURE_CLIENT_ID }}
88
+ azure-client-secret : ${{ secrets.AZURE_CLIENT_SECRET }}
89
+ endpoint : https://eus.codesigning.azure.net/
90
+ trusted-signing-account-name : trusted-signing-elixir
91
+ certificate-profile-name : Elixir
92
+ files-folder : ${{ github.workspace }}
93
+ files-folder-filter : exe
94
+ file-digest : SHA256
95
+ timestamp-rfc3161 : http://timestamp.acs.microsoft.com
96
+ timestamp-digest : SHA256
97
+
83
98
- name : " Attest release .exe provenance"
84
99
uses : actions/attest-build-provenance@v2
85
100
id : attest-exe-provenance
@@ -112,6 +127,18 @@ jobs:
112
127
env :
113
128
ATTESTATION : " ${{ steps.attest-docs-provenance.outputs.bundle-path }}"
114
129
130
+ - name : Create Release Hashes
131
+ run : |
132
+ shasum -a 1 elixir-otp-${{ matrix.otp }}.zip > elixir-otp-${{ matrix.otp }}.zip.sha1sum
133
+ shasum -a 256 elixir-otp-${{ matrix.otp }}.zip > elixir-otp-${{ matrix.otp }}.zip.sha256sum
134
+ shasum -a 1 elixir-otp-${{ matrix.otp }}.exe > elixir-otp-${{ matrix.otp }}.exe.sha1sum
135
+ shasum -a 256 elixir-otp-${{ matrix.otp }}.exe > elixir-otp-${{ matrix.otp }}.exe.sha256sum
136
+ - name : Create Docs Hashes
137
+ if : ${{ matrix.build_docs }}
138
+ run : |
139
+ shasum -a 1 Docs.zip > Docs.zip.sha1sum
140
+ shasum -a 256 Docs.zip > Docs.zip.sha256sum
141
+
115
142
- name : " Upload release artifacts"
116
143
uses : actions/upload-artifact@v4
117
144
with :
@@ -126,7 +153,7 @@ jobs:
126
153
path : Docs.zip*
127
154
128
155
upload-release :
129
- needs : build
156
+ needs : [ build, create_draft_release]
130
157
runs-on : windows-2022
131
158
132
159
steps :
@@ -137,22 +164,6 @@ jobs:
137
164
mv Docs/* .
138
165
shell: bash
139
166
140
- - name : " Sign files with Trusted Signing"
141
- if : github.repository == 'elixir-lang/elixir'
142
-
143
- with :
144
- azure-tenant-id : ${{ secrets.AZURE_TENANT_ID }}
145
- azure-client-id : ${{ secrets.AZURE_CLIENT_ID }}
146
- azure-client-secret : ${{ secrets.AZURE_CLIENT_SECRET }}
147
- endpoint : https://eus.codesigning.azure.net/
148
- trusted-signing-account-name : trusted-signing-elixir
149
- certificate-profile-name : Elixir
150
- files-folder : ${{ github.workspace }}
151
- files-folder-filter : exe
152
- file-digest : SHA256
153
- timestamp-rfc3161 : http://timestamp.acs.microsoft.com
154
- timestamp-digest : SHA256
155
-
156
167
- name : Upload Pre-built
157
168
shell : bash
158
169
env :
0 commit comments