Skip to content

Fixing release actions on Linux #9

Fixing release actions on Linux

Fixing release actions on Linux #9

name: Deploy Windows Installer
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup .NET Framework 3.5
shell: pwsh
run: Install-WindowsFeature Net-Framework-Core
- name: Setup Wix Toolset
run: |
curl -OLS https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311.exe
./wix311.exe /install /quiet /norestart
- name: Build Windows Installer
run: |
cd src/Camelot.WindowsInstaller
msbuild -p:Configuration=Release -p:platform=x64
- name: Upload Release Asset
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ./src/Camelot.WindowsInstaller/bin/Release/Camelot.msi
asset_name: CamelotWindows.msi