Skip to content

Commit 032b747

Browse files
committed
Add condition for deploy
1 parent db66978 commit 032b747

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-Sharpy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: publish to nuget
2-
on:
3-
push:
4-
branches:
5-
- master # Default release branch
2+
on: [push]
3+
64
jobs:
75
build:
86
name: Test project
@@ -21,6 +19,8 @@ jobs:
2119
publish:
2220
name: build, pack & publish
2321
runs-on: ubuntu-latest
22+
needs: build
23+
if: success() && github.ref == 'refs/heads/master'
2424
steps:
2525
- uses: actions/checkout@v2
2626

0 commit comments

Comments
 (0)