Publish using .NET CLI

This commit is contained in:
Tony Bark 2020-12-08 21:57:55 -05:00
parent 730b20bf20
commit dd146f0a5f
4 changed files with 26 additions and 43 deletions

25
.github/workflows/pkg_release.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Publish Nuget Package
on:
push:
branches:
- "releases/**"
jobs:
publish:
name: Github Packages Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.404
- name: Install dependencies
run: dotnet restore
- name: Package
run: dotnet pack --no-restore -o .
- name: Publish
env:
NUGET_KEY: ${{ secrets.GH_PKG_KEY }
NUGET_API: https://nuget.pkg.github.com/tonytins/index.json
run: dotnet nuget push CSTNet.*.nupkg -k $NUGET_KEY -s $NUGET_API