-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.21 KB
/
dotnet_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
name: Dotnet Build
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
workflow_dispatch:
# allows manual trigger
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
# ExportX is only for building godot.
builds: [ 'Debug', 'ExportDebug', 'ExportRelease', 'DebugClient', 'DebugServer' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clone EIV Nuget repository
uses: actions/checkout@v4
with:
repository: ExtractIntoVoid/Nuget
path: eiv_nuget
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Add eiv_nuget to nuget souce
run: dotnet nuget add source --name eiv_nuget $env:GITHUB_WORKSPACE/eiv_nuget
- name: Publish
run: dotnet publish EIV_Game.csproj -c ${{ matrix.builds }} -o Out
- name: Package
run: dotnet pack EIV_Game.csproj -c ${{ matrix.builds }} -o Out
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: EIV_Game_DOTNET-${{ matrix.builds }}
path: Out
if-no-files-found: error