Skip to content

Commit 5a312d9

Browse files
committed
Fix production signing
1 parent e78377c commit 5a312d9

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/windows.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
New-Item -ItemType directory -Path installer
5555
New-Item -ItemType directory -Path to_publish
5656
New-Item -ItemType directory -Path publish
57+
New-Item -ItemType directory -Path publish_production
5758
5859
echo "*** Copy non QT DLLs from welle.io-win-libs repository ***"
5960
Copy-Item ..\welle.io-win-libs\x64\*.dll installer -recurse # Libs
@@ -117,34 +118,31 @@ jobs:
117118
password: ${{ secrets.SFTP_PASSWORD }}
118119
local_dir: publish/
119120

120-
121-
production_signing:
122-
name: Sign installer with production key
123-
needs: qtbuild
124-
runs-on: windows-latest
125-
126-
# Production signing needs a manual step in SignPath within 5 minutes.
127-
# During development we don't need each build signed with a production key.
128-
# So we can accept to fail here
129-
continue-on-error: true
130-
131-
steps:
132121
- name: Production sign installer with SignPath
133-
id: signing_installer
122+
id: production_signing_installer
134123
uses: signpath/github-action-submit-signing-request@v1
124+
125+
# Production signing needs a manual step in SignPath within 5 minutes.
126+
# During development we don't need each build signed with a production key.
127+
# So we can accept to fail here
128+
continue-on-error: true
129+
135130
with:
136131
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
137132
organization-id: 'b7a507e8-ab76-445f-bfb5-05944bcbbee9'
138133
project-slug: 'welle.io'
139134
signing-policy-slug: 'release-signing'
140-
github-artifact-id: '${{needs.qtbuild.upload_artifact.outputs.artifact-id}}'
135+
github-artifact-id: '${{upload_artifact.outputs.artifact-id}}'
141136
wait-for-completion: true
142137
output-artifact-directory: 'publish_production'
143138

144139
- name: Archive artifacts (welle.io Windows installer signed)
145140
id: upload_artifact_signed
146141
uses: actions/upload-artifact@v4
142+
if: always() && steps.production_signing_installer.outcome == 'success'
147143
with:
148144
name: welle.io Windows installer production-signed
149145
path: publish_production\*.exe
150-
if-no-files-found: error
146+
if-no-files-found: error
147+
148+

0 commit comments

Comments
 (0)