Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 11 additions & 3 deletions .github/workflows/unlist-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Unlist NuGet

on:
workflow_dispatch:
inputs:
version:
description: 'Version to unlist'
required: true
type: string
# release:
# types: [deleted]

Expand All @@ -19,11 +24,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4


- name: Debug version input
run: echo "Version to unlist: ${{ github.event.release.tag_name || github.event.inputs.version }}"

# Unlist
- name: Unlist Deleted Tag
uses: darenm/unlist-nuget@v1
with:
NUGET_PACKAGE: ${{ env.PROJECT_NAME }} # Full Package ID
VERSION_REGEX: ${{ github.event.release.tag_name }} # Regex pattern to match version
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key
VERSION_REGEX: ${{ github.event.release.tag_name || github.event.inputs.version }}
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<MajorVersion>3</MajorVersion>
<MinorVersion>0</MinorVersion>
<PatchVersion>4</PatchVersion>
<PatchVersion>5</PatchVersion>
</PropertyGroup>
<!-- Disable automatic package publishing -->
<PropertyGroup>
Expand Down
Loading