@@ -103,6 +103,7 @@ jobs:
103103 - name : Azure Login
104104 shell : pwsh
105105 run : |
106+ # Login to public Azure (not Germany) for Code Signing service
106107 az login --service-principal `
107108 -u ${{ secrets.DECO_SIGN_AZURE_CLIENT_ID }} `
108109 -p ${{ secrets.DECO_SIGN_AZURE_CLIENT_SECRET }} `
@@ -129,18 +130,37 @@ jobs:
129130 AZURE_CLIENT_ID : ${{ secrets.DECO_SIGN_AZURE_CLIENT_ID }}
130131 AZURE_CLIENT_SECRET : ${{ secrets.DECO_SIGN_AZURE_CLIENT_SECRET }}
131132
132- - name : Upload Windows artifacts to release
133- if : false # Temporarily disabled for testing
134- shell : pwsh
133+ - name : Upload Windows artifacts to GitHub Actions
134+ uses : actions/upload-artifact@v4
135+ with :
136+ name : windows-artifacts
137+ path : |
138+ dist/*.zip
139+ dist/*SHA256SUMS*
140+ retention-days : 1
141+
142+ upload-windows-to-release :
143+ if : false # Temporarily disabled for testing
144+ runs-on :
145+ group : databricks-deco-testing-runner-group
146+ labels : ubuntu-latest-deco
147+ needs : goreleaser-windows
148+
149+ steps :
150+ - name : Download Windows artifacts
151+ uses : actions/download-artifact@v4
152+ with :
153+ name : windows-artifacts
154+ path : dist
155+
156+ - name : Upload to GitHub release
135157 run : |
136- Get-ChildItem dist -Filter *.zip | ForEach-Object {
137- Write-Host "Uploading $($_.Name)"
138- gh release upload ${{ github.ref_name }} $_.FullName
139- }
140- Get-ChildItem dist -Filter *SHA256SUMS* | ForEach-Object {
141- Write-Host "Uploading $($_.Name)"
142- gh release upload ${{ github.ref_name }} $_.FullName
143- }
158+ for file in dist/*.zip dist/*SHA256SUMS*; do
159+ if [ -f "$file" ]; then
160+ echo "Uploading $(basename $file)"
161+ gh release upload ${{ github.ref_name }} "$file"
162+ fi
163+ done
144164 env :
145165 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146166
0 commit comments