Skip to content

Commit 077e6de

Browse files
authored
Build & deploy: add branch sustaining/1.8.x (#73)
1 parent ba120ef commit 077e6de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-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','release/2.0.0-SNAPSHOT' ]
6+
branches: [ 'sustaining/1.8.x','master' ]
77

88
jobs:
99
build-maven:

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Package/Deploy
33
on:
44
workflow_dispatch:
55
workflow_run:
6-
branches: [ 'master','release/2.0.0-SNAPSHOT' ]
6+
branches: [ 'sustaining/1.8.x','master' ]
77
workflows: ["Build","Release"]
88
types: [completed]
99

@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Java for publishing to Maven Central Repository OSS
2525
uses: actions/setup-java@v4
2626
with:
27-
java-version: ${{ github.event.workflow_run.head_branch == 'release/2.0.0-SNAPSHOT' && '11' || '8'}}
27+
java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/1.8.x' && '8' || '11'}}
2828
distribution: 'temurin'
2929
server-id: ossrh
3030
server-username: MAVEN_USERNAME

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Java for publishing to Maven Central Repository OSS
2727
uses: actions/setup-java@v4
2828
with:
29-
java-version: '11'
29+
java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/1.8.x' && '8' || '11'}}
3030
distribution: 'temurin'
3131
server-id: ossrh
3232
server-username: MAVEN_USERNAME

0 commit comments

Comments
 (0)