Browse Source

Auto unlist alpha

Tigger Kindel 2 years ago
parent
commit
6edb1f411c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/publish.yml

+ 6 - 0
.github/workflows/publish.yml

@@ -71,3 +71,9 @@ jobs:
 
     - name: Publish to NuGet.org
       run: dotnet nuget push Terminal.Gui/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
+
+    - name: Unlist from NuGet.org if it's an alpha
+      run: dotnet nuget delete Terminal.Gui ${{ steps.gitversion.outputs.SemVer }} --api-key ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
+      if: contains(steps.gitversion.outputs.SemVer, 'alpha')
+
+