From 5a19709e3c221a6ad1b152b482662337aaa17ecc Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 11 Sep 2024 14:52:38 -0700 Subject: [PATCH] More updates --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0289860b..fe182ef4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,10 @@ name: 'Publish to NuGet.org' on: workflow_dispatch: + inputs: + enablepublish: + description: "Publish to nuget.org" + default: "on" permissions: contents: read @@ -45,7 +49,8 @@ jobs: working-directory: ${{ github.workspace }} run: for /R %1 in (directxtk*.nupkg) do nuget verify -All -Signatures -Verbosity quiet %1 - - name: 'Publish NuGet packages' + - if: github.event.inputs.enablepublish == 'on' + name: 'Publish NuGet packages' working-directory: ${{ github.workspace }} run: for /R %1 in (directxtk*.nupkg) do nuget push %1 -Source https://api.nuget.org/v3/index.json -ApiKey %APIKEY% -SkipDuplicate env: