Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: Build and Release Installer
concurrency:
group: "build-release"
cancel-in-progress: true
on:
push:
branches: [ main ]
paths-ignore:
- '*.md'
jobs:
build:
runs-on: windows-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Set up PowerShell
uses: actions/setup-powershell@v2
- name: Modify codex.iss for CODEX
run: |
(Get-Content .\installer\src\codex.iss) -replace '#define OutputName\s+\"setup\"', '#define OutputName "codex"' | Set-Content .\installer\src\codex.iss
shell: pwsh
- name: Compile CODEX with ISCC
run: |
.\tooling\InnoSetupEE\ISCC.exe .\installer\src\codex.iss
- name: Modify codex.iss for PLAZA
run: |
(Get-Content .\installer\src\codex.iss) -replace '#define Style\s+\"CODEX\"', '#define Style "PLAZA"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define GroupName\s+\"CODEX\"', '#define GroupName "PLAZA"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define LogoGroup\s+\"5\"', '#define LogoGroup "7"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define IconGroup\s+\"1\"', '#define IconGroup "2"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define MusicGroup\s+\"1\"', '#define MusicGroup "2"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define OutputName\s+\"codex\"', '#define OutputName "plaza"' |
Set-Content .\installer\src\codex.iss
shell: pwsh
- name: Compile PLAZA with ISCC
run: |
.\tooling\InnoSetupEE\ISCC.exe .\installer\src\codex.iss
- name: Modify codex.iss for RUNE
run: |
(Get-Content .\installer\src\codex.iss) -replace '#define Style\s+\"PLAZA\"', '#define Style "RUNE"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define GroupName\s+\"PLAZA\"', '#define GroupName "RUNE"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define LogoGroup\s+\"7\"', '#define LogoGroup "8"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define IconGroup\s+\"2\"', '#define IconGroup "3"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define MusicGroup\s+\"2\"', '#define MusicGroup "3"' |
Set-Content .\installer\src\codex.iss
(Get-Content .\installer\src\codex.iss) -replace '#define OutputName\s+\"plaza\"', '#define OutputName "rune"' |
Set-Content .\installer\src\codex.iss
shell: pwsh
- name: Compile RUNE with ISCC
run: |
.\tooling\InnoSetupEE\ISCC.exe .\installer\src\codex.iss
- name: Create GitHub Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "New Installer Release"
files: ./installer/src/DISTRIBUTABLE/*.exe