Skip to content

Commit d4b0db1

Browse files
authored
Zip signing result
1 parent 1096d41 commit d4b0db1

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/dotnet-release.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: windows-2019
1313
steps:
1414
- uses: actions/checkout@v4
15+
1516
- uses: ./.github/build
1617
id: build
1718
with:
@@ -20,16 +21,6 @@ jobs:
2021
artifact: release_artifact_portable
2122
- name: Create zip
2223
run: Compress-Archive -Path ${{steps.build.outputs.path}}/* -Destination release_artifact_portable.zip
23-
- uses: signpath/[email protected]
24-
with:
25-
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
26-
organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889'
27-
project-slug: 'PasteIntoFile'
28-
signing-policy-slug: 'test-signing'
29-
artifact-configuration-slug: 'portable'
30-
github-artifact-id: '${{ steps.build.outputs.artifact-id }}'
31-
wait-for-completion: true
32-
output-artifact-directory: 'signed'
3324
- name: Upload release artifact
3425
uses: actions/upload-release-asset@v1
3526
env:
@@ -39,13 +30,29 @@ jobs:
3930
asset_path: release_artifact_portable.zip
4031
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable.zip
4132
asset_content_type: application/zip
33+
34+
- uses: signpath/[email protected]
35+
with:
36+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
37+
organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889'
38+
project-slug: 'PasteIntoFile'
39+
signing-policy-slug: 'test-signing'
40+
artifact-configuration-slug: 'portable'
41+
github-artifact-id: '${{ steps.build.outputs.artifact-id }}'
42+
wait-for-completion: true
43+
output-artifact-directory: 'signing_result'
44+
- name: Show signing result
45+
run: |
46+
ls -la signed/
47+
- name: Create zip
48+
run: Compress-Archive -Path signing_result/* -Destination release_artifact_portable_signed.zip
4249
- name: Upload signed release artifact
4350
uses: actions/upload-release-asset@v1
4451
env:
4552
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4653
with:
4754
upload_url: ${{ github.event.release.upload_url }}
48-
asset_path: signed/release_artifact_portable.zip
55+
asset_path: release_artifact_portable_signed.zip
4956
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_signed.zip
5057
asset_content_type: application/zip
5158

0 commit comments

Comments
 (0)