-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (32 loc) · 1.06 KB
/
maven-java-8.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
name: XSD-AVDL Build - Linux - Java 8
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
settings-path: ${{ github.workspace }}
- name: Cache Maven Modules
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-xsd-avdl-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-xsd-avdl-
- name: List the Settings Directory
run: |
ls -la $GITHUB_WORKSPACE/.github/workflows/settings.xml
- name: Cat the Provided Settings
run: |
cat $GITHUB_WORKSPACE/.github/workflows/settings.xml
- name: Cat the Generated Settings
run: |
cat $GITHUB_WORKSPACE/settings.xml
- name: Build with Maven
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -U clean install --file pom.xml
env:
TOKEN_PACKAGE_READ_WRITE_DELETE: ${{ secrets.token_package_read_write_delete }}