Skip to content

Commit 74477f7

Browse files
Update build-and-sign-sequential.yml
1 parent d0f8a02 commit 74477f7

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build-and-sign-sequential.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,18 +423,27 @@ jobs:
423423
path: ${{ env.PACKAGE_ZIP }}
424424
retention-days: 30
425425

426+
# Upload ZIP for SignPath
427+
- name: Upload ZIP for SignPath
428+
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.event.inputs.skip_signing != 'true'
429+
id: upload_for_signpath
430+
uses: actions/upload-artifact@v4
431+
with:
432+
name: Package-For-SignPath-${{ env.RELEASE_TAG }}
433+
path: ${{ env.PACKAGE_ZIP }}
434+
retention-days: 1
435+
426436
# STEP 8: Submit to SignPath
427437
- name: "Step 8: Submit to SignPath"
428-
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.event.inputs.skip_signing != 'true'
438+
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.event.inputs.skip_signing != 'true' && steps.upload_for_signpath.outputs.artifact-id != ''
429439
id: signpath_request
430440
uses: signpath/github-action-submit-signing-request@v1
431441
with:
432442
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
433443
organization-id: '${{ vars.SIGNPATH_ORG_ID }}'
434444
project-slug: '${{ vars.SIGNPATH_PROJECT_SLUG }}'
435445
signing-policy-slug: '${{ vars.SIGNPATH_POLICY_SLUG }}'
436-
artifact-configuration-slug: 'zip-package'
437-
input-artifact-path: '${{ env.PACKAGE_ZIP }}'
446+
github-artifact-id: '${{ steps.upload_for_signpath.outputs.artifact-id }}'
438447
wait-for-completion: true
439448
output-artifact-directory: 'signed-output'
440449
parameters: |

0 commit comments

Comments
 (0)