Skip to content

Commit 3fa5b43

Browse files
committed
Add workflow_dispatch inputs to deploy manually
(cherry picked from commit 6bf578c32a0c825807b1556b582dc6fdfd24ca69)
1 parent 24c3b5e commit 3fa5b43

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/master.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ on:
1212
- master
1313

1414
workflow_dispatch:
15+
inputs:
16+
deployToFeedz:
17+
description: 'Deploy the libraries to feedz.io'
18+
required: true
19+
default: false
20+
deployToNuGet:
21+
description: 'Deploy the libraries to NuGet.org'
22+
required: true
23+
default: false
1524

1625
env:
1726
BUILD_CONFIGURATION: Release
@@ -63,8 +72,8 @@ jobs:
6372

6473
- name: Push to feedz.io
6574
run: dotnet nuget push **/*.nupkg -k ${{ secrets.FEEDZ_API_KEY }} -s https://f.feedz.io/forevolve/exception-mapper/nuget/index.json
66-
if: github.event_name == 'pull_request'
75+
if: ${{ env.INPUT_DEPLOYTOFEEDZ == true || github.event_name == 'pull_request' }}
6776

6877
- name: Push to NuGet.org
6978
run: dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
70-
if: github.event_name == 'push'
79+
if: ${{ env.INPUT_DEPLOYTONUGET == true || github.event_name == 'push' }}

0 commit comments

Comments
 (0)