-
Notifications
You must be signed in to change notification settings - Fork 45
39 lines (37 loc) · 1.11 KB
/
windows-installer-deploy.yml
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
name: Deploy Windows Installer
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.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