Allow for publishing to nugettest.org

This commit is contained in:
Tony Bark 2022-10-10 04:56:38 -04:00
parent 420cdb83fe
commit 7211ff6857
4 changed files with 32 additions and 6 deletions

View file

@ -1,4 +1,4 @@
name: Publish Nuget Package
name: Publish Release Package
on:
push:
branches:

24
.github/workflows/staging.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Publish Testing Package
on:
push:
branches:
- "staging/**"
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.DEPLOY_TEST_KEY }}
NUGET_API: https://apiint.nugettest.org/v3/index.json
run: dotnet nuget push CSTNet.*.nupkg --api-key $NUGET_KEY --source $NUGET_API