5555 git push origin $ref_name --force
5656
5757 build :
58- needs : create_draft_release
5958 strategy :
6059 fail-fast : true
6160 matrix :
8079 otp : ${{ matrix.otp }}
8180 build_docs : ${{ matrix.build_docs }}
8281
82+ - name : " Sign files with Trusted Signing"
83+ if : github.repository == 'elixir-lang/elixir'
84+ uses : azure/trusted-signing-action@v0.5.0
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+
8398 - name : " Attest release .exe provenance"
8499 uses : actions/attest-build-provenance@v2
85100 id : attest-exe-provenance
@@ -112,6 +127,18 @@ jobs:
112127 env :
113128 ATTESTATION : " ${{ steps.attest-docs-provenance.outputs.bundle-path }}"
114129
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+
115142 - name : " Upload release artifacts"
116143 uses : actions/upload-artifact@v4
117144 with :
@@ -126,7 +153,7 @@ jobs:
126153 path : Docs.zip*
127154
128155 upload-release :
129- needs : build
156+ needs : [ build, create_draft_release]
130157 runs-on : windows-2022
131158
132159 steps :
@@ -137,22 +164,6 @@ jobs:
137164 mv Docs/* .
138165 shell: bash
139166
140- - name : " Sign files with Trusted Signing"
141- if : github.repository == 'elixir-lang/elixir'
142- uses : azure/trusted-signing-action@v0.5.0
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-
156167 - name : Upload Pre-built
157168 shell : bash
158169 env :
0 commit comments