Scotland2 support, various improvements #160
Workflow file for this run
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: Windows Installer | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
name: Build installer on windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.402 | |
- name: Download Inno Setup | |
uses: suisei-cn/actions-download-file@v1 | |
with: | |
url: https://jrsoftware.org/download.php/is.exe | |
target: ../ | |
- name: Install Inno Setup | |
run: '../is.exe /VERYSILENT /NORESTART /ALLUSERS' | |
- name: Set version | |
run: '"${{ github.event.release.tag_name }}" | Out-File -NoNewline -FilePath ./VERSION' | |
- name: Build QuestPatcher | |
run: dotnet publish QuestPatcher/QuestPatcher.csproj -c Release -r win-x64 --self-contained | |
- name: Compile Installer | |
run: '& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /f installer/installer.iss' | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: ./installer/QuestPatcher-windows.exe | |
asset_name: QuestPatcher-windows.exe | |
asset_content_type: application/octet-stream |