Skip to content

Commit

Permalink
Reusable Workflow Secrets Declaration (#586)
Browse files Browse the repository at this point in the history
* Reusable Workflow Secrets Declaration

* Update test-and-publish.yml
  • Loading branch information
Aragas authored Sep 23, 2024
1 parent 15c11dc commit 9e7b1d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/reusable-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ on:
required: true
type: string
description: 'The build configuration to use'
secrets:
NUGET_API_KEY:
required: true
NIGHTLY_NUGET_API_KEY:
required: true
NIGHTLY_NUGET_SOURCE:
required: true

env:
# Disable the .NET logo in the console output.
Expand Down Expand Up @@ -50,4 +57,4 @@ jobs:
- name: Push to NuGet Nightly
if: ${{github.ref == 'refs/heads/development'}}
run: dotnet nuget push "./artifacts/*.nupkg" -k ${{secrets.NIGHTLY_NUGET_API_KEY}} -s ${{secrets.NIGHTLY_NUGET_SOURCE}} --skip-duplicate
shell: pwsh
shell: pwsh
4 changes: 4 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,7 @@ jobs:
image: 'windows-latest'
architecture: 'x64'
build_configuration: 'Release'
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NIGHTLY_NUGET_API_KEY: ${{ secrets.NIGHTLY_NUGET_API_KEY }}
NIGHTLY_NUGET_SOURCE: ${{ secrets.NIGHTLY_NUGET_SOURCE }}

0 comments on commit 9e7b1d5

Please sign in to comment.