Skip to content

Commit 36a82c9

Browse files
committed
Sign portable version
1 parent 7cf548c commit 36a82c9

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/dotnet-release.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,49 @@ on:
88

99
jobs:
1010

11-
portable-build:
11+
portable:
1212
runs-on: windows-2019
1313
steps:
1414
- uses: actions/checkout@v4
15+
1516
- uses: ./.github/build
17+
id: build
1618
with:
1719
configuration: Release
1820
flavor: Portable
1921
artifact: release_artifact_portable
22+
- name: Create zip
23+
run: Compress-Archive -Path ${{steps.build.outputs.path}}/* -Destination release_artifact_portable_unsigned.zip
24+
- name: Upload release artifact
25+
uses: actions/upload-release-asset@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
upload_url: ${{ github.event.release.upload_url }}
30+
asset_path: release_artifact_portable_unsigned.zip
31+
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_unsigned.zip
32+
asset_content_type: application/zip
2033

21-
portable-publish:
22-
runs-on: windows-2019
23-
needs: portable-build
24-
steps:
25-
- name: Collect artifact
26-
uses: actions/download-artifact@v4
34+
- uses: signpath/[email protected]
2735
with:
28-
name: release_artifact_portable
29-
path: release_artifact_portable
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'
3044
- name: Create zip
31-
run: Compress-Archive -Path release_artifact_portable/* -Destination release_artifact_portable.zip
32-
#run: tar -cvzf release_artifact_portable.tar.gz -C release_artifact_portable *
33-
- name: Upload release artifact
45+
run: Compress-Archive -Path signing_result/* -Destination release_artifact_portable_signed.zip
46+
- name: Upload signed release artifact
3447
uses: actions/upload-release-asset@v1
3548
env:
3649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3750
with:
3851
upload_url: ${{ github.event.release.upload_url }}
39-
asset_path: release_artifact_portable.zip
40-
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable.zip
52+
asset_path: release_artifact_portable_signed.zip
53+
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_signed.zip
4154
asset_content_type: application/zip
4255

4356
installer:

0 commit comments

Comments
 (0)