Skip to content

Commit 9d8bc40

Browse files
authored
fix nuget force (#597)
* Allow github push to fail while pushing to nuget * Force release option
1 parent 93c9563 commit 9d8bc40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
required: true
99
default: "0.0.0-test"
1010
type: string
11+
force_release:
12+
description: "Force release to nuget.org"
13+
required: false
14+
default: false
15+
type: boolean
1116
push:
1217
branches:
1318
- master
@@ -196,7 +201,7 @@ jobs:
196201
197202
# Only publish to NuGet on stable releases
198203
- name: Publish packages (NuGet Registry)
199-
if: ${{ github.event_name == 'release' }}
204+
if: ${{ github.event_name == 'release' || github.event.inputs.force_release }}
200205
run: >
201206
dotnet nuget push **/*.nupkg
202207
--source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)