Explorar o código

Auto unlist alpha

Tigger Kindel %!s(int64=2) %!d(string=hai) anos
pai
achega
07def6abd0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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')
+
+