Skip to content

Commit 5ac80c3

Browse files
committed
Build & deploy: add branch release/3.0.0-SNAPSHOT
1 parent d6f6296 commit 5ac80c3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Maven
33
on:
44
push:
55
pull_request:
6-
branches: [ master ]
6+
branches: [ 'master','release/3.0.0-SNAPSHOT' ]
77
jobs:
88
build-maven:
99
runs-on: ${{ matrix.os }}

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Maven
22

33
on:
44
workflow_run:
5-
branches: [ master ]
5+
branches: [ 'master','release/3.0.0-SNAPSHOT' ]
66
workflows: ["Build Maven","Release Maven"]
77
types: [completed]
88
jobs:
@@ -26,10 +26,11 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828
submodules: recursive
29+
ref: ${{ github.event.workflow_run.head_branch }}
2930
- name: Set up Java for publishing to Maven Central Repository OSS
3031
uses: actions/setup-java@v4
3132
with:
32-
java-version: '8'
33+
java-version: ${{ github.event.workflow_run.head_branch == 'release/3.0.0-SNAPSHOT' && '11' || '8'}}
3334
distribution: 'temurin'
3435
server-id: ossrh
3536
server-username: MAVEN_USERNAME

0 commit comments

Comments
 (0)