Skip to content

Commit b8faaba

Browse files
committed
Merge branch 'master' of https://github.com/Code-Sharp/WampSharp
2 parents 46e652a + 853fb6d commit b8faaba

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: GitHub packages NuGet generation (Blazor)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
name: Update NuGet
12+
steps:
13+
14+
- name: Generate build number
15+
uses: einaregilsson/build-number@v2
16+
with:
17+
token: ${{secrets.github_token}}
18+
19+
- name: Checkout repository
20+
uses: actions/checkout@master
21+
22+
- name: Build solution and generate NuGet package
23+
run: |
24+
cd src\netstandard\
25+
dotnet pack -c Release -o out /p:Version=21.0.${env:BUILD_NUMBER}-blazor
26+
- name: Install NuGet client
27+
uses: warrenbuckley/Setup-Nuget@v1
28+
29+
- name: Add private GitHub registry to NuGet
30+
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Code-Sharp/index.json -Username Code-Sharp -Password ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Push generated package to GitHub registry
33+
run: |
34+
cd src\netstandard\
35+
nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate

0 commit comments

Comments
 (0)