Skip to content

Commit 1a3936b

Browse files
authored
Add workflow_dispatch trigger to publish.yml
1 parent 73e28e4 commit 1a3936b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- 'master'
77
paths:
88
- 'gradle.properties'
9+
workflow_dispatch:
910

1011
jobs:
1112
publish:
@@ -25,6 +26,7 @@ jobs:
2526
id: version
2627
run: echo "version=$(cat gradle.properties | grep version= | cut -d'=' -f2)" >> $GITHUB_OUTPUT
2728
- name: Make Release Publication
29+
if: ${{ success() && github.repository == 'Kas-tle/NetworkCompatible' && github.ref_name == 'master' }}
2830
id: release
2931
uses: Kas-tle/base-release-action@65d06f835be34757c6d73c16959c97e92c2a3c7f
3032
with:
@@ -49,6 +51,7 @@ jobs:
4951

5052
steps:
5153
- uses: Kas-tle/release-build-log-action@1b57448eaf9476e6e05450e4ea240449eac2c0d2
54+
if: ${{ success() && github.repository == 'Kas-tle/NetworkCompatible' && github.ref_name == 'master' }}
5255
with:
5356
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
releaseID: ${{ needs.publish.outputs.release_id }}
57+
releaseID: ${{ needs.publish.outputs.release_id }}

0 commit comments

Comments
 (0)