Skip to content

Commit 80e74c6

Browse files
authored
Create nugetGallery.yml
1 parent c085ed8 commit 80e74c6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/nugetGallery.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: NuGet Generation
2+
3+
on:
4+
release:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
name: Update NuGet
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@master
15+
16+
- name: Build solution and generate NuGet package
17+
run: |
18+
cd src/netstandard
19+
dotnet pack -c Release -o out
20+
21+
- name: Install NuGet client
22+
uses: warrenbuckley/Setup-Nuget@v1
23+
24+
- name: Add NuGet gallery registry
25+
run: nuget sources add -Name "NuGet Gallery" -Source https://api.nuget.org/v3/index.json
26+
27+
- name: Push generated package to GitHub registry
28+
run: nuget push .\**\out\*.nupkg -Source "NuGet Gallery" -SkipDuplicate -k ${{ secrets.NUGET_TOKEN }}

0 commit comments

Comments
 (0)