-
Notifications
You must be signed in to change notification settings - Fork 36
53 lines (40 loc) · 1.44 KB
/
build.yaml
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
51
52
53
name: Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE
- name: Restore Packages
run: dotnet restore dcs-dtc/DTC.csproj
- name: Disable Out of Process Building
run: .\DisableOutOfProcBuild.exe
working-directory: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild
- name: Build Solution
run: |
dotnet publish -c Release -p:PublishProfile=FolderProfile dcs-dtc\DTC.csproj
- name: Build the Installer
run: DevEnv installer/installer.vdproj /build Release
- uses: actions/upload-artifact@v2
with:
name: build-result
path: installer/Release/dtc-setup.msi
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: installer/Release/dtc-setup.msi
asset_name: dtc-setup-${{ github.ref_name }}.msi
tag: ${{ github.ref }}
overwrite: true