Skip to content

Commit 41f2ec5

Browse files
committed
fix: publish github action issue
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent da3f32c commit 41f2ec5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: publish
22

33
on:
4-
release:
5-
types: [created]
4+
push:
5+
branches:
6+
- main
67
workflow_dispatch:
78
inputs:
89
publish_maven:
@@ -27,7 +28,7 @@ jobs:
2728
runs-on: ubuntu-latest
2829
timeout-minutes: 30
2930
# Only publish when semantic-release creates a release commit (starts with "chore(release):")
30-
# if: (github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release):')) || (github.event_name == 'workflow_dispatch' && inputs.publish_javadoc)
31+
if: (github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release):')) || (github.event_name == 'workflow_dispatch' && inputs.publish_javadoc)
3132

3233
permissions:
3334
contents: write
@@ -65,7 +66,7 @@ jobs:
6566
runs-on: ubuntu-latest
6667
timeout-minutes: 30
6768
# Only publish when semantic-release creates a release commit (starts with "chore(release):")
68-
# if: (github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release):')) || (github.event_name == 'workflow_dispatch' && inputs.publish_maven)
69+
if: (github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release):')) || (github.event_name == 'workflow_dispatch' && inputs.publish_maven)
6970

7071
steps:
7172
- name: Checkout code

0 commit comments

Comments
 (0)