forked from SubmergedAmongUs/Submerged
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.01 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build Debug
run: dotnet build --configuration Debug --no-restore
- name: Build Release
run: dotnet build --configuration Release --no-restore
- name: Upload Debug Artifact
uses: actions/upload-artifact@v2
with:
name: submerged-debug
path: Submerged/bin/Debug/net6.0/Submerged.dll
- name: Upload Release Artifact
uses: actions/upload-artifact@v2
with:
name: submerged-release
path: Submerged/bin/Release/net6.0/Submerged.dll
- name: Setup Draft Release
if: github.ref == 'refs/heads/main'
run: echo "Draft release steps to be implemented"