cstdotnet/.github/workflows/pkgrelease.yml
Tony Bark 229ab4f0ad This release drops .NET Standard in favor of .NET 6.
There are a lot of significant under the hood changes with the release. See the change log for details.
2021-11-19 13:52:26 -05:00

24 lines
772 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: "6.0.x"
- 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 Sixam.CST.*.nupkg -k $NUGET_KEY -s $NUGET_API