Przeglądaj źródła

Auto unlist alpha

Tigger Kindel 2 lat temu
rodzic
commit
07def6abd0
1 zmienionych plików z 6 dodań i 0 usunięć
  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')
+
+