cstdotnet/.github/workflows/publish.yml
Tony Bark 87ea439dfe Remove solution and build workflow, update publish workflow
- Deleted CSTNet.sln because it was a pain to manage two
- Also deleted the test workflow due to costs.
- Updated publish workflow to use .NET 10.0.x and improved formatting.
2026-01-07 03:03:36 -05:00

26 lines
867 B
YAML

name: Publish Release Package
on:
push:
branches:
- "releases/**"
jobs:
publish:
name: Package Release
runs-on: ubuntu-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "10.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_KEY }}
NUGET_API: https://api.nuget.org/v3/index.json
run: dotnet nuget push CSTNet.*.nupkg --api-key $NUGET_KEY --source $NUGET_API