-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 936 Bytes
/
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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack with dotnet
run: dotnet pack Dialogative --configuration Release
- name: Push to Github Packages
run: dotnet nuget push ./Dialogative/bin/Release/Dialogative.*.nupkg --source "https://nuget.pkg.github.com/ydinkov/index.json" --api-key ${{ secrets.GH_PACKAGES_TOKEN }}
- name: Push to Nuget
run: dotnet nuget push ./Dialogative/bin/Release/Dialogative.*.nupkg -s https://www.nuget.org/ -k ${{ secrets.NUGET_API_KEY }}