cstdotnet/.github/workflows/pkgrelease.yml
Tony Bark 1f1066e7b4 Uncommented push to NuGet
Didn't realize that got migrated over.
2020-12-11 01:52:10 -05:00

25 lines
770 B
YAML

name: Publish Nuget Package
on:
push:
branches:
- "releases/**"
jobs:
publish:
name: Package 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 to Nuget
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
NUGET_API: https://api.nuget.org/v3/index.json
run: dotnet nuget push CSTNet.*.nupkg -k $NUGET_KEY -s $NUGET_API