Version 5.4.4 #51
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # When a release is published on github.com, this workflow creates a release build and uploads it to the release page | |
| name: Release | |
| on: | |
| release: | |
| types: [ published ] | |
| jobs: | |
| portable: | |
| runs-on: windows-2025 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/build | |
| id: build | |
| with: | |
| configuration: Release | |
| flavor: Portable | |
| artifact: release_artifact_portable | |
| - name: Create zip | |
| run: Compress-Archive -Path ${{steps.build.outputs.path}}/* -Destination release_artifact_portable_unsigned.zip | |
| - name: Upload release artifact | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: release_artifact_portable_unsigned.zip | |
| asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_unsigned.zip | |
| asset_content_type: application/zip | |
| - name: Sign with Signpath | |
| uses: signpath/[email protected] | |
| with: | |
| api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' | |
| organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889' | |
| project-slug: 'PasteIntoFile' | |
| signing-policy-slug: 'release-signing' | |
| artifact-configuration-slug: 'portable' | |
| github-artifact-id: '${{ steps.build.outputs.artifact-id }}' | |
| parameters: | | |
| version: "${{ steps.build.outputs.version }}" | |
| wait-for-completion: true | |
| output-artifact-directory: 'signing_result' | |
| - name: Create zip | |
| run: Compress-Archive -Path signing_result/* -Destination release_artifact_portable_signed.zip | |
| - name: Upload signed release artifact | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: release_artifact_portable_signed.zip | |
| asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_signed.zip | |
| asset_content_type: application/zip | |
| installer: | |
| runs-on: windows-2025 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build program executable | |
| id: build | |
| uses: ./.github/build | |
| with: | |
| configuration: Release | |
| flavor: Installer | |
| - name: Add WiX toolkit to PATH | |
| shell: bash | |
| run: echo "${WIX}bin" >> $GITHUB_PATH | |
| - name: Build MSI file with WiX toolchain | |
| run: | | |
| cd Installer | |
| heat dir ../${{steps.build.outputs.path}} -dr INSTALLFOLDER -ag -cg ReleaseFragment -ke -srd -sfrag -nologo -pog:Binaries -pog:Documents -pog: Satellites -pog:Sources -pog:Content -t releaseFiles.xslt -out releaseFiles.wxs | |
| candle releaseFiles.wxs | |
| candle PasteIntoFile.wxs | |
| light -b ../${{steps.build.outputs.path}} releaseFiles.wixobj PasteIntoFile.wixobj -ext WixNetFxExtension -out Installer.msi | |
| - name: Upload release artifact | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: Installer/Installer.msi | |
| asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_installer_unsigned.msi | |
| asset_content_type: application/msi | |
| - name: Upload artifact for signing | |
| id: upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: Installer/Installer.msi | |
| - name: Sign with Signpath | |
| uses: signpath/[email protected] | |
| with: | |
| api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' | |
| organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889' | |
| project-slug: 'PasteIntoFile' | |
| signing-policy-slug: 'release-signing' | |
| artifact-configuration-slug: 'installer-zip' | |
| github-artifact-id: '${{ steps.upload.outputs.artifact-id }}' | |
| parameters: | | |
| version: "${{ steps.build.outputs.version }}" | |
| wait-for-completion: true | |
| output-artifact-directory: 'signing_result' | |
| - name: Upload signed release artifact | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: signing_result/Installer.msi | |
| asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_installer_signed.msi | |
| asset_content_type: application/msi | |