Build Installer #7
This file contains 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
name: Build Installer | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build the Inno Setup Installer | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate release tag | |
id: generate_tag | |
run: | | |
$releaseTag = (Get-Date).ToString('yy.MM.dd') | |
echo "RELEASE_TAG=$releaseTag" >> $env:GITHUB_ENV | |
- name: Prepare for testing (x64 only) | |
run: | | |
if (Test-Path -Path .\testing) { | |
Copy-Item -Path .\testing\* -Destination .\input -Recurse -Force | |
} else { | |
Write-Error "The 'testing' directory does not exist." | |
} | |
(Get-Content "Setup.iss") | | |
ForEach-Object { $_ -replace '1.0.0', '${{ env.RELEASE_TAG }}' } | | |
Set-Content "Setup.iss" | |
shell: pwsh | |
- name: Compile Installer | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: Setup.iss | |
options: /O+ | |
- name: Upload installer artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: installer | |
path: output/*.exe | |
if-no-files-found: error |