-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (31 loc) · 1.05 KB
/
main.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
name: Checkout Code
- name: Setup MSBuild Path
uses: microsoft/[email protected]
- name: Restore NuGet Packages
run: msbuild "GTA Chaos.sln" -t:restore -p:RestorePackagesConfig=true
- name: Build Release
run: msbuild "GTA Chaos.sln" /p:Configuration=Release
- name: Build Debug
run: msbuild "GTA Chaos.sln" /p:Configuration=Debug
- name: Copy executables
run: |
mkdir output
cp GTAChaos\bin\Release\GTAChaos.exe output/TrilogyChaosMod.exe
cp GTAChaos\bin\Debug\GTAChaos.exe output/TrilogyChaosMod.Debug.exe
- name: Upload Release
uses: actions/[email protected]
with:
name: "Trilogy Chaos Mod"
path: output/TrilogyChaosMod.exe
- name: Upload Debug
uses: actions/[email protected]
with:
name: "Trilogy Chaos Mod (Debug)"
path: output/TrilogyChaosMod.Debug.exe