This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (55 loc) · 1.68 KB
/
dotnet.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: .NET Build
on:
push:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
pull_request:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
jobs:
build:
name: .NET on ${{ matrix.runs-on }} (${{ matrix.configuration }})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [windows-latest]
configuration: [Release,Debug]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Publish
run: dotnet publish -c ${{ matrix.configuration }} --property:PublishDir=../artifacts
- name: Tar files (Applications)
run: tar -cvf Applications.tar Applications\artifacts
- name: Tar files (Plugins)
run: tar -cvf Plugins.tar Plugins\artifacts
- name: Tar files (Core/Lib)
run: tar -cvf CoreLib.tar artifacts
- name: Upload artifact (Applications)
uses: actions/upload-artifact@v3
with:
name: TarkovServerApplications-${{ matrix.configuration }}
path: Applications.tar
if-no-files-found: error
- name: Upload artifact (Plugins)
uses: actions/upload-artifact@v3
with:
name: TarkovServerPlugins-${{ matrix.configuration }}
path: Plugins.tar
if-no-files-found: error
- name: Upload artifact (Core/Lib)
uses: actions/upload-artifact@v3
with:
name: TarkovServerLib-${{ matrix.configuration }}
path: CoreLib.tar
if-no-files-found: error