Skip to content

Commit 5e646f2

Browse files
committed
fixes
1 parent 303b7cf commit 5e646f2

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.goreleaser-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ builds:
4141

4242
hooks:
4343
post:
44-
- cmd /c signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /dlib Azure.CodeSigning.Dlib.dll /dmdf metadata.json "{{ .Path }}"
44+
- pwsh -Command "signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /dlib Azure.CodeSigning.Dlib.dll /dmdf metadata.json '{{ .Path }}'"
4545

4646
archives:
4747
- formats: ["zip"]

0 commit comments

Comments
 (0)