forked from AM2R-Community-Developers/Atomic
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.17 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
42
43
44
45
46
47
48
name: Build and Upload
on:
push:
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest]
configuration: [Release]
include:
- os: windows-latest
ARTIFACT: builds/win
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
#- name: Setup MSBuild Path
# uses: warrenbuckley/Setup-MSBuild@v1
#- name: Setup NuGet
# uses: NuGet/[email protected]
- name: Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x86
- name: Restore dependencies
run: dotnet restore "AM2R ModPacker.sln"
- name: Build
run: msbuild "AM2R ModPacker.sln" -t:restore,build -p:RestorePackagesConfig=true
# Steps for uploading artifacts.
- name: Zip to Archive
run: 7z a -tzip ${{ matrix.os }}.zip ./bin\Debug\
- name: Upload Artifacts
uses: actions/[email protected]
with:
name: ${{ matrix.os }}
path: ${{ matrix.os }}.zip