cstdotnet/.github/workflows/pkgrelease.yml

26 lines
780 B
YAML
Raw Normal View History

2020-12-08 21:57:55 -05:00
name: Publish Nuget Package
on:
push:
branches:
- "releases/**"
jobs:
publish:
name: Package Release
2020-12-08 21:57:55 -05:00
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 .
2020-12-11 01:22:09 -05:00
# - 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