File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Deploy Snapshot
2
2
on :
3
3
push :
4
- branches :
5
- - master
6
- - " 3.0"
7
- - " 2.18"
4
+ branches : [2.*]
8
5
paths-ignore :
9
6
- " README.md"
10
7
- " release-notes/*"
11
8
pull_request :
12
- branches :
13
- - master
14
- - " 3.0"
15
- - " 2.18"
9
+ branches : [2.*]
16
10
paths-ignore :
17
11
- " README.md"
18
12
- " release-notes/*"
19
13
jobs :
20
14
build :
21
- runs-on : ${{ matrix.os }}
15
+ runs-on : ' ubuntu-latest '
22
16
strategy :
23
17
fail-fast : false
24
18
# 01-Jul-2021, tatu: Requires JDK 11 for build, due to Jetty dep (for testing)
25
19
matrix :
26
20
java_version : ['11', '17', '21']
27
- os : ['ubuntu-22.04']
28
21
env :
29
22
JAVA_OPTS : " -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
30
23
steps :
45
38
run : ./mvnw -B -q -ff -ntp verify
46
39
- name : Extract project Maven version
47
40
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
49
42
- 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') }}
51
44
env :
52
45
CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
53
46
CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
You can’t perform that action at this time.
0 commit comments