-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 933 Bytes
/
unlist-nuget.yml
File metadata and controls
37 lines (31 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Unlist NuGet
on:
workflow_dispatch:
inputs:
version:
description: 'Version to unlist'
required: true
type: string
# release:
# types: [deleted]
env:
BRANCH_NAME: ${{ github.event.release.target_commitish }}
PROJECT_NAME: ${{ vars.PROJECT_NAME }}
permissions:
contents: write
jobs:
publish:
name: unlist on nuget
runs-on: windows-latest
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 || github.event.inputs.version }}
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} # nuget.org API key