Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/Nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: 'Upload to NuGet'
on:
release:
types: [published]
# Publishes the packages of a tag that already has a release, when the run its release started failed
# after the release was published. The packages are built from the tag, as a release builds them.
workflow_dispatch:
inputs:
tag:
description: 'The tag of a published release, such as v2.7.0'
required: true

jobs:
publish:
Expand All @@ -17,11 +24,15 @@ jobs:
dotnet-version: '10.x'

- uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name || inputs.tag }}

- name: 'Determine version'
id: version
env:
TAGNAME: ${{ github.event.release.tag_name || inputs.tag }}
run: |
tagname="${{ github.event.release.tag_name }}"
tagname="$TAGNAME"

# Validate tag name exists
if [[ -z "$tagname" ]]; then
Expand Down
Loading