Skip to content

Commit cea4052

Browse files
authored
Ajout du cache Maven & des artifacts au CI
1 parent 7ce2143 commit cea4052

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/maven.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,16 @@ jobs:
2020
uses: actions/setup-java@v1
2121
with:
2222
java-version: 1.8
23+
- name: Cache Maven packages
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.m2
27+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28+
restore-keys: ${{ runner.os }}-m2
2329
- name: Build with Maven
2430
run: mvn -B package --file pom.xml
31+
- run: mkdir staging && cp target/*.jar staging
32+
- uses: actions/upload-artifact@v2
33+
with:
34+
name: Package
35+
path: staging

0 commit comments

Comments
 (0)