File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
31
42name : Java CI with Gradle
53
64on :
75 push :
86 branches : [ 2.x ]
7+ tags :
8+ - v*
99 pull_request :
1010 branches : [ 2.x ]
11+ workflow_dispatch :
1112
1213jobs :
1314 build :
1415
1516 runs-on : ubuntu-latest
1617
1718 steps :
18- - uses : actions/checkout@v2
19- - name : Set up JDK 8
20- uses : actions/setup-java@v2
19+ - uses : actions/checkout@v3
20+ - name : Set up JDK 1. 8
21+ uses : actions/setup-java@v3
2122 with :
2223 java-version : ' 8'
23- distribution : ' adopt'
24- cache : gradle
25- - name : Grant execute permission for gradlew
26- run : chmod +x gradlew
27- - name : Build with Gradle
24+ distribution : ' temurin'
25+ cache : ' gradle'
26+ - name : Build dex-tools with Gradle
2827 run : ./gradlew check distZip
28+
29+ - name : Archive dex tools
30+ uses : actions/upload-artifact@v3
31+ if : success()
32+ with :
33+ name : dex-tools-2.2-SNAPSHOT
34+ path : dex-tools/build/distributions/dex-tools-2.2-SNAPSHOT.zip
You can’t perform that action at this time.
0 commit comments