Skip to content

Commit ade1afe

Browse files
committed
Update package source in publish action
1 parent 2b67e74 commit ade1afe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Package version'
88
required: true
99
default: '1.0.0-preview1'
10+
packageSource:
11+
description: 'Package source'
12+
required: true
13+
default: 'https://api.nuget.org/v3/index.json'
1014

1115
jobs:
1216
build:
@@ -28,4 +32,4 @@ jobs:
2832
- name: Pack
2933
run: dotnet pack --configuration Release -p:PackageVersion=${{ github.event.inputs.packageVersion }}
3034
- name: Push
31-
run: dotnet nuget push **/*.nupkg -s https://apidev.nugettest.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}
35+
run: dotnet nuget push **/*.nupkg -s ${{ github.event.inputs.packageSource }} -k ${{secrets.NUGET_API_KEY}}

0 commit comments

Comments
 (0)