Skip to content

Commit 0cf4a0a

Browse files
committed
fix(ci): restrict manual publish runs to version branches
1 parent 25df7bb commit 0cf4a0a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
build:
11+
if: github.event_name != 'workflow_dispatch' || startsWith(github.ref, 'refs/heads/version/')
1112
uses: SLNE-Development/surf-workflows/.github/workflows/build-publish-release-gradle.yml@master
1213
with:
1314
modules: "surf-api-paper-server-*-all.jar;surf-api-velocity-server-*-all.jar;surf-api-standalone-server-*-all.jar"

0 commit comments

Comments
 (0)