Skip to content

Commit 5cc0756

Browse files
committed
Build & deploy: add branch release/16.0.0-SNAPSHOT
1 parent 67dd2dd commit 5cc0756

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build
33
on:
44
push:
55
pull_request:
6-
branches: [ master ]
6+
branches: [ 'master','release/16.0.0-SNAPSHOT' ]
77

88
jobs:
99
build-maven:

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Package/Deploy
33
on:
44
workflow_dispatch:
55
workflow_run:
6-
branches: [ master ]
6+
branches: [ 'master','release/16.0.0-SNAPSHOT' ]
77
workflows: ["Build","Release"]
88
types: [completed]
99
jobs:
1010
deploy-maven:
11-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
11+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event=='push'}}
1212
runs-on: 'ubuntu-latest'
1313
steps:
1414
- name: Print github context
@@ -19,10 +19,11 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121
submodules: recursive
22+
ref: ${{ github.event.workflow_run.head_branch }}
2223
- name: Set up Java for publishing to Maven Central Repository OSS
2324
uses: actions/setup-java@v4
2425
with:
25-
java-version: '8'
26+
java-version: ${{ github.event.workflow_run.head_branch == 'release/16.0.0-SNAPSHOT' && '11' || '8'}}
2627
distribution: 'zulu'
2728
server-id: ossrh
2829
server-username: MAVEN_USERNAME

0 commit comments

Comments
 (0)