-
Notifications
You must be signed in to change notification settings - Fork 159
50 lines (41 loc) · 1.22 KB
/
build.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
40
41
42
43
44
45
46
47
48
49
50
name: Rectify11
on:
workflow_dispatch:
push:
pull_request:
workflow_run:
workflows: ["Submodules Sync"]
types:
- completed
jobs:
build:
runs-on: windows-latest
env:
NUGET_CERT_REVOCATION_MODE: offline
steps:
- name: Checkout
uses: actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
lfs: true
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: "8"
- name: Restore NuGet Packages
run: nuget restore Rectify11Installer.sln
- name: Build
run: msbuild Rectify11Installer.sln /p:Configuration=Release /p:platform=x64
- name: Publish
run: dotnet publish Rectify11Installer -c Release -p:PublishProfile=FolderProfile -property:SolutionDir=${{ github.workspace }}\
- name: Upload Rectify11Installer
uses: actions/[email protected]
with:
name: Rectify11Installer (x64)
path: Rectify11Installer\bin\Release\net8.0-windows\publish\win-x64\Rectify11Installer.exe
compression-level: 0