-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.13 KB
/
TestCompiling.yml
File metadata and controls
43 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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/Inno-Setup-Action@v1.2.2
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