-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (37 loc) · 1.01 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Java CI
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version:
- 23
env:
MAVEN_SKIP_CHECKS_AND_DOCS: -Dair.check.skip-all=true -Dmaven.javadoc.skip=true
MAVEN_FAST_INSTALL: -DskipTests -Dair.check.skip-all=true -Dmaven.javadoc.skip=true -B -q -T 1.0C
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: ./mvnw install
run: ./mvnw install $MAVEN_FAST_INSTALL
- name: ./mvnw test
run: ./mvnw test -Dmaven.javadoc.skip=true -B
- name: Release
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.java-version == '23' }}
with:
files: |
target/trino-jtopen-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}