Skip to content

Commit

Permalink
Update build-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinki14 committed Dec 28, 2023
1 parent 33f5e0e commit 6ecc8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
env:
is-default-branch: ${{ github.ref_name == github.event.repository.default_branch }}
is-tag: ${{ startsWith(github.ref, 'refs/tags/') }}
is-manual: ${{ github.event_name == 'workflow_dispatch' }}
do-manual-publish: ${{ github.event_name == 'workflow_dispatch' && inputs.publish == true }}

jobs:
build:
Expand Down Expand Up @@ -67,5 +67,5 @@ jobs:
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate

- name: Publish - GitHub
if: ${{ env.is-default-branch == 'true' || env.is-tag == 'true' || (env.is-manual == 'true' && inputs.publish == true) }}
if: ${{ env.is-default-branch == 'true' || env.is-tag == 'true' || env.do-manual-publish == 'true' }}
run: dotnet nuget push **/*.nupkg --skip-duplicate

0 comments on commit 6ecc8b3

Please sign in to comment.