-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.1 KB
/
dotnet.yml
File metadata and controls
40 lines (34 loc) · 1.1 KB
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
name: .NET
on:
push:
#branches: [ master ]
pull_request:
#branches: [ master ]
jobs:
build:
runs-on: windows-latest
#strategy:
# matrix:
# dotnet: [ '3.1.x', '5.0.x' ]
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x' #${{ matrix.dotnet }}
source-url: https://api.nuget.org/v3/index.json
#- name: Add nuget.org as a source
# run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
- name: Clear cache
shell: cmd
run: dotnet clean ./WinPath.sln --configuration Release && dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run Publish script
run: dotnet publish -c Release -r win10-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=false -p:UseAppHost=true --self-contained false
#- name: Test
# run: dotnet test --no-build --verbosity normal