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