-
Notifications
You must be signed in to change notification settings - Fork 20
30 lines (21 loc) · 868 Bytes
/
dotnetcore.yml
File metadata and controls
30 lines (21 loc) · 868 Bytes
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
name: .NET Core
on:
push:
branches:
- master
jobs:
publish-gpr:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Install NuGet client
uses: warrenbuckley/Setup-Nuget@v1
- name: Cleaning package
run: nuget restore
- name: Build solution and generate NuGet package
run: nuget pack src/IO.Clicksend/IO.ClickSend.csproj -Build -Properties Configuration=Release -OutputDirectory out
- name: Add private GitHub registry to NuGet
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/ClickSend/index.json -Username ClickSend -Password ${{ secrets.GPR_TOKEN }}
- name: Push generated package to GitHub registry
run: nuget push out\*.nupkg -Source "GPR" -SkipDuplicate