Skip to content

Commit d66af7d

Browse files
update github actions (#597)
* Update GitHub Actions --------- Co-authored-by: Nico Mexis <[email protected]>
1 parent 482af4a commit d66af7d

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/gradle.yml

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
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

42
name: Java CI with Gradle
53

64
on:
75
push:
86
branches: [ 2.x ]
7+
tags:
8+
- v*
99
pull_request:
1010
branches: [ 2.x ]
11+
workflow_dispatch:
1112

1213
jobs:
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

0 commit comments

Comments
 (0)