Skip to content

feature/nuget pkg (#42) #4

feature/nuget pkg (#42)

feature/nuget pkg (#42) #4

Workflow file for this run

name: NuGet Release
on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
version_suffix:
description: 'Version suffix (empty for stable, e.g. rc.1, beta.2)'
required: false
default: ''
concurrency:
group: nuget-release-${{ github.ref }}
cancel-in-progress: false
jobs:
pack-and-push:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Pack all packages
shell: pwsh
run: ./build/nuget-pack.ps1 -VersionSuffix "${{ inputs.version_suffix }}"
env:
DOTNET_NOLOGO: true
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{ vars.NUGET_USER }}
- name: Push to NuGet.org
shell: pwsh
run: ./build/nuget-publish.ps1
env:
NUGET_API_KEY: ${{ steps.login.outputs.NUGET_API_KEY }}