Skip to content

Commit ce3ca98

Browse files
committed
Adjust release pipeline
1 parent cbd6c00 commit ce3ca98

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/setup-java@v3
1717
with:
1818
distribution: 'microsoft'
19-
java-version: '11'
19+
java-version: '17'
2020
cache: 'maven'
2121
- name: Build & Test
2222
run: mvn -B test
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/setup-java@v3
3232
with:
3333
distribution: 'microsoft'
34-
java-version: '11'
34+
java-version: '17'
3535
cache: 'maven'
3636
- name: Build and Analyze
3737
env:
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/setup-java@v3
5252
with:
5353
distribution: 'microsoft'
54-
java-version: '11'
54+
java-version: '17'
5555
cache: 'maven'
5656
server-id: ossrh
5757
server-username: MAVEN_USERNAME
@@ -106,15 +106,13 @@ jobs:
106106
needs: [ publish ]
107107
steps:
108108

109-
- name: Checkout Main Branch
109+
- name: Checkout Branch
110110
uses: actions/checkout@v3
111-
with:
112-
ref: main
113111
- name: Setup Java
114112
uses: actions/setup-java@v3
115113
with:
116114
distribution: 'microsoft'
117-
java-version: '11'
115+
java-version: '17'
118116
cache: 'maven'
119117
- name: Configure Git user
120118
run: |
@@ -135,8 +133,8 @@ jobs:
135133
run: |
136134
git commit -m "[version bump] new dev version" -a
137135
138-
- name: Push Development Version to Main Branch
136+
- name: Push Development Version to Branch
139137
uses: ad-m/github-push-action@master
140138
with:
141139
github_token: ${{ secrets.GITHUB_TOKEN }}
142-
branch: main
140+
branch: ${{github.event.release.target_commitish || 'main'}}

0 commit comments

Comments
 (0)