-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (29 loc) · 1013 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
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: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build Apricot/Apricot.csproj --no-restore --configuration Release
# - name: Test
# run: dotnet test Apricot/Apricot.csproj --no-build --verbosity normal
- name: Publish
run: dotnet publish Apricot/Apricot.csproj --configuration Release --framework net6.0-windows10.0.17763.0 --output Apricot/bin/Release/net6.0-windows10.0.17763.0/win10-x64/publish/ --runtime win10-x64 --self-contained true
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Apricot-win-x64
path: Apricot/bin/Release/net6.0-windows10.0.17763.0/win10-x64/publish/
retention-days: 30