Skip to content

Commit 660c32b

Browse files
committed
CI clean up
1 parent 7781e87 commit 660c32b

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
name: Build and Deploy Snapshot
22
on:
33
push:
4-
branches:
5-
- master
6-
- "3.0"
7-
- "2.18"
4+
branches: [2.*]
85
paths-ignore:
96
- "README.md"
107
- "release-notes/*"
118
pull_request:
12-
branches:
13-
- master
14-
- "3.0"
15-
- "2.18"
9+
branches: [2.*]
1610
paths-ignore:
1711
- "README.md"
1812
- "release-notes/*"
1913
jobs:
2014
build:
21-
runs-on: ${{ matrix.os }}
15+
runs-on: 'ubuntu-latest'
2216
strategy:
2317
fail-fast: false
2418
# 01-Jul-2021, tatu: Requires JDK 11 for build, due to Jetty dep (for testing)
2519
matrix:
2620
java_version: ['11', '17', '21']
27-
os: ['ubuntu-22.04']
2821
env:
2922
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3023
steps:
@@ -45,9 +38,9 @@ jobs:
4538
run: ./mvnw -B -q -ff -ntp verify
4639
- name: Extract project Maven version
4740
id: projectVersion
48-
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.4.1:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT
41+
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT
4942
- name: Deploy snapshot
50-
if: github.event_name != 'pull_request' && matrix.java_version == '11' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
43+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '11' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5144
env:
5245
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
5346
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}

0 commit comments

Comments
 (0)