Skip to content

Commit ce6c697

Browse files
committed
Publish a package.
1 parent e9c0c83 commit ce6c697

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,19 @@ jobs:
1919
dotnet-version: 3.0.100
2020
- name: Build with dotnet
2121
run: dotnet build --configuration Release
22+
23+
publish:
24+
runs-on: windows-latest
25+
needs: build
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: Setup .NET Core
29+
uses: actions/setup-dotnet@v1
30+
with:
31+
dotnet-version: 3.0.100
32+
- name: Pack
33+
run: dotnet pack -c Release --version-suffix preview-${{ github.sha }}
34+
- name: Add NuGet source
35+
run: nuget sources Add -Name "GPR" -Source "https://nuget.pkg.github.com/mysql-net/index.json" -UserName bgrainger -Password ${{ secrets.GITHUB_TOKEN }}
36+
- name: Publish to GPR
37+
run: nuget push src\PlaygroundLibrary\bin\Release\PlaygroundLibrary.0.1.0-preview-${{ github.sha }}.nupkg -Source GPR

0 commit comments

Comments
 (0)