This repository was archived by the owner on Jul 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +31
-16
lines changed
Expand file tree Collapse file tree 1 file changed +31
-16
lines changed Original file line number Diff line number Diff line change 11name : maven
22
3- on :
3+ ' on ' :
44 push :
55 branches :
6- - master
6+ - master
77 pull_request :
88 branches :
9- - master
9+ - master
1010
1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v2
16- - name : prepare java 1.8
17- uses : actions/setup-java@v1
18- with :
19- java-version : 1.8
20- - name : prepare depdendency cache
21- uses : actions/cache@v2
22- with :
23- path : ~/.m2
24- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25- restore-keys : ${{ runner.os }}-m2
26- - name : run maven package
27- run : mvn -B package --file pom.xml
15+
16+ - name : set up environment
17+ run : |
18+ echo ::set-env name=ARTIFACT_NAME::"$GITHUB_SHA"
19+
20+ - name : checkout changes
21+ uses : actions/checkout@v2
22+
23+ - name : prepare java 1.8
24+ uses : actions/setup-java@v1
25+ with :
26+ java-version : 1.8
27+
28+ - name : prepare depdendency cache
29+ uses : actions/cache@v2
30+ with :
31+ path : ~/.m2
32+ key : ' ${{ runner.os }}-m2-${{ hashFiles('' **/pom.xml'' ) }}'
33+ restore-keys : ' ${{ runner.os }}-m2'
34+
35+ - name : run maven package
36+ run : mvn -B package --file pom.xml
37+
38+ - name : upload artifact
39+ uses : actions/upload-artifact@v2
40+ with :
41+ name : ' ${{ env.ARTIFACT_NAME }}'
42+ path : target/*.jar
You can’t perform that action at this time.
0 commit comments