-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (33 loc) · 978 Bytes
/
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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Publish
run: dotnet publish -r win-x64 --configuration Release
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: ringvideos
path: "./RingVideos/bin/Release/net8.0/win-x64/publish"
- name: Publish for Linx
run: dotnet publish -r linux-x64 --configuration Release
- name: Upload a Linux Build Artifact
uses: actions/upload-artifact@v2
with:
name: ringvideos-linux
path: "./RingVideos/bin/Release/net8.0/linux-x64/publish"