Skip to content

Commit 6380023

Browse files
Update Nuget Publication vars (#223)
1 parent 2cbb745 commit 6380023

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ jobs:
4646
id: prepareEnvVarsAndSecrets
4747
with:
4848
environmentVariablesYaml: |
49-
{}
49+
BUILDVAR_NuGetPublishSource: "${{ startsWith(github.ref, 'refs/tags/') && 'https://api.nuget.org/v3/index.json' || 'https://nuget.pkg.github.com/endjin/index.json' }}"
5050
secretsYaml: |
51-
{
52-
NUGET_API_KEY: "${{ secrets.GITHUB_TOKEN }}"
53-
}
51+
NUGET_API_KEY: "${{ startsWith(github.ref, 'refs/tags/') && secrets.ENDJIN_NUGET_APIKEY || secrets.ENDJIN_GITHUB_PUBLISHER_PAT }}"
5452
5553
build:
5654
needs: prepareConfig

0 commit comments

Comments
 (0)