mirror of
https://github.com/tonytins/cstdotnet.git
synced 2025-03-24 17:09:07 +00:00
26 lines
782 B
YAML
26 lines
782 B
YAML
|
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
|