-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 852 Bytes
/
build.yaml
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
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download repository
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.6.3
- name: Maven dependency/resolve
run: mvn dependency:resolve
- name: Maven install
run: mvn install -Dgithub-actions=true -Dmaven.javadoc.skip=true -B -V -e > maven-install-output.txt
- name: Print logs
if: ${{ always() }}
run: |
tail -n 500 maven-install-output.txt
- uses: actions/upload-artifact@v4
if: failure()
with:
name: maven-install-output.txt
path: maven-install-output.txt