|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 |
|
11 | | - portable-build: |
| 11 | + portable: |
12 | 12 | runs-on: windows-2019 |
13 | 13 | steps: |
14 | 14 | - uses: actions/checkout@v4 |
|
18 | 18 | configuration: Release |
19 | 19 | flavor: Portable |
20 | 20 | 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 * |
21 | 24 | - uses: signpath/[email protected] |
22 | 25 | with: |
23 | 26 | api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' |
|
26 | 29 | signing-policy-slug: 'test-signing' |
27 | 30 | artifact-configuration-slug: 'portable' |
28 | 31 | 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' |
42 | 34 | - name: Upload release artifact |
43 | 35 | uses: actions/upload-release-asset@v1 |
44 | 36 | env: |
|
48 | 40 | asset_path: release_artifact_portable.zip |
49 | 41 | asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable.zip |
50 | 42 | 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 |
51 | 52 |
|
52 | 53 | installer: |
53 | 54 | runs-on: windows-2019 |
|
0 commit comments