Skip to content

Commit

Permalink
More updates
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 11, 2024
1 parent 3e19cfe commit 5a19709
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ name: 'Publish to NuGet.org'

on:
workflow_dispatch:
inputs:
enablepublish:
description: "Publish to nuget.org"
default: "on"

permissions:
contents: read
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5a19709

Please sign in to comment.