Skip to content

Commit

Permalink
add release distro
Browse files Browse the repository at this point in the history
  • Loading branch information
nomi-san committed Nov 29, 2024
1 parent 36f0ce7 commit 46ef302
Showing 1 changed file with 45 additions and 4 deletions.
49 changes: 45 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: |
app/bin/version
app/bin/vdd.cmd
app/bin/ParsecVDisplay.exe
app/bin/ParsecVDisplay.exe.config
Expand All @@ -64,10 +65,50 @@ jobs:
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
project-slug: parsec-vdd
signing-policy-slug: release-signing
artifact-configuration-slug: portable-app
artifact-configuration-slug: zipped-exe
github-artifact-id: "${{steps.artifact-upload-step.outputs.artifact-id}}"
wait-for-completion: true
output-artifact-directory: "release"
output-artifact-directory: bin
parameters: |
Version: "${{ github.ref_name }}"
- name: Fetch distro branch
if: ${{ inputs.release }}
uses: actions/checkout@v4
with:
ref: distro
fetch-depth: 0
path: distro

- name: Make setup installer & portable app
if: ${{ inputs.release }}
run: |
mkdir distro\final
Compress-Archive -Path bin\* -DestinationPath distro\final\ParsecVDisplay-v${{ env.APP_VERSION }}-portable.zip -Force
cd distro
& "$env:ProgramFiles (x86)\Inno Setup 6\iscc.exe" setup.iss
- name: Upload installer output
if: ${{ inputs.release }}
uses: actions/upload-artifact@v4
id: artifact-upload-installer-step
with:
name: setup-installer
path: |
distro/out/*.exe
- name: Sign the installer
if: ${{ inputs.release }}
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
project-slug: parsec-vdd
signing-policy-slug: release-signing
artifact-configuration-slug: zipped-exe
github-artifact-id: "${{steps.artifact-upload-installer-step.outputs.artifact-id}}"
wait-for-completion: true
output-artifact-directory: distro/final
parameters: |
Version: "${{ github.ref_name }}"
Expand All @@ -77,9 +118,9 @@ jobs:
with:
name: '*'

- name: Upload signed build
- name: Upload signed output
if: ${{ inputs.release }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: release/
path: distro/final/

0 comments on commit 46ef302

Please sign in to comment.