Skip to content

Commit f15e172

Browse files
authored
Run publish action when a merge is performed on the main branch (#50)
1 parent 787555a commit f15e172

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ name: Publish
22

33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [ main ]
6+
pull_request:
7+
types: [ closed ]
8+
branches: [ main ]
69

710
jobs:
811
publish:
912
runs-on: ubuntu-latest
1013
environment: production
14+
if: github.event.pull_request.merged == true || github.event_name == 'push'
1115
steps:
1216
- uses: actions/checkout@v4
1317
- name: Set up JDK 8

0 commit comments

Comments
 (0)