mirror of
https://github.com/tonytins/cstdotnet.git
synced 2025-10-15 16:03:49 -04:00
Allow for publishing to nugettest.org
This commit is contained in:
parent
420cdb83fe
commit
7211ff6857
4 changed files with 32 additions and 6 deletions
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Publish Nuget Package
|
||||
name: Publish Release Package
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
|
24
.github/workflows/staging.yml
vendored
Normal file
24
.github/workflows/staging.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue