Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
push:
pull_request:
workflow_dispatch:
inputs:
runPublish:
description: 'Publish Nuget ?'
required: true
default: 'false'
type: boolean

jobs:
build:
Expand Down Expand Up @@ -133,7 +139,7 @@ jobs:
publish-nuget:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
if: github.event.inputs.runPublish == 'true' && github.ref_name == github.event.repository.default_branch
environment:
name: Publish
url: https://www.nuget.org/packages/TestStack.BDDfy/
Expand Down Expand Up @@ -206,4 +212,4 @@ jobs:
--notes-file release-notes.md \
--generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}