Commit d66af7d 1 parent 482af4a commit d66af7d Copy full SHA for d66af7d
File tree 1 file changed +16
-10
lines changed
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
3
1
4
2
name : Java CI with Gradle
5
3
6
4
on :
7
5
push :
8
6
branches : [ 2.x ]
7
+ tags :
8
+ - v*
9
9
pull_request :
10
10
branches : [ 2.x ]
11
+ workflow_dispatch :
11
12
12
13
jobs :
13
14
build :
14
15
15
16
runs-on : ubuntu-latest
16
17
17
18
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
21
22
with :
22
23
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
28
27
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