Skip to content

Commit 557424e

Browse files
authored
Publish signed portable version
1 parent c082713 commit 557424e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/dotnet-release.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010

11-
portable-build:
11+
portable:
1212
runs-on: windows-2019
1313
steps:
1414
- uses: actions/checkout@v4
@@ -18,6 +18,9 @@ jobs:
1818
configuration: Release
1919
flavor: Portable
2020
artifact: release_artifact_portable
21+
- name: Create zip
22+
run: Compress-Archive -Path release_artifact_portable/* -Destination release_artifact_portable.zip
23+
#run: tar -cvzf release_artifact_portable.tar.gz -C release_artifact_portable *
2124
- uses: signpath/[email protected]
2225
with:
2326
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
@@ -26,19 +29,8 @@ jobs:
2629
signing-policy-slug: 'test-signing'
2730
artifact-configuration-slug: 'portable'
2831
github-artifact-id: '${{ steps.build.outputs.artifact-id }}'
29-
30-
portable-publish:
31-
runs-on: windows-2019
32-
needs: portable-build
33-
steps:
34-
- name: Collect artifact
35-
uses: actions/download-artifact@v4
36-
with:
37-
name: release_artifact_portable
38-
path: release_artifact_portable
39-
- name: Create zip
40-
run: Compress-Archive -Path release_artifact_portable/* -Destination release_artifact_portable.zip
41-
#run: tar -cvzf release_artifact_portable.tar.gz -C release_artifact_portable *
32+
wait-for-completion: true
33+
output-artifact-directory: 'signed'
4234
- name: Upload release artifact
4335
uses: actions/upload-release-asset@v1
4436
env:
@@ -48,6 +40,15 @@ jobs:
4840
asset_path: release_artifact_portable.zip
4941
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable.zip
5042
asset_content_type: application/zip
43+
- name: Upload signed release artifact
44+
uses: actions/upload-release-asset@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
upload_url: ${{ github.event.release.upload_url }}
49+
asset_path: signed/release_artifact_portable.zip
50+
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_signed.zip
51+
asset_content_type: application/zip
5152

5253
installer:
5354
runs-on: windows-2019

0 commit comments

Comments
 (0)