|
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 |
| 15 | + |
15 | 16 | - uses: ./.github/build |
| 17 | + id: build |
16 | 18 | with: |
17 | 19 | configuration: Release |
18 | 20 | flavor: Portable |
19 | 21 | 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 |
20 | 33 |
|
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] |
27 | 35 | 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' |
30 | 44 | - 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 |
34 | 47 | uses: actions/upload-release-asset@v1 |
35 | 48 | env: |
36 | 49 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
37 | 50 | with: |
38 | 51 | 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 |
41 | 54 | asset_content_type: application/zip |
42 | 55 |
|
43 | 56 | installer: |
|
0 commit comments