forked from JakeBayer/FuzzySharp
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.15 KB
/
master_package_and_publish.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
name: Nuget Package Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
name: Build
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Test with dotnet
run: dotnet test
deploy:
needs: [Build]
name: Package and Publish
runs-on: [windows-latest]
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Pack nuget package
run: dotnet pack --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg
- name: Push package to NuGet
run: dotnet nuget push **/*.nupkg
--skip-duplicate
--api-key ${{ secrets.NUGET_DEPLOY_KEY }}
--source https://api.nuget.org/v3/index.json