forked from pxb1988/dex2jar
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b142393
commit 3f0104e
Showing
3 changed files
with
73 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
|
||
- name: Build dex-tools with Gradle | ||
run: ./gradlew check distZip | ||
|
||
- name: Archive dex tools | ||
uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: dex-tools | ||
path: dex-tools/build/distributions/dex-tools-*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
|
||
- name: Build dex-tools with Gradle | ||
run: ./gradlew check distZip | ||
|
||
- uses: ncipollo/release-action@v1 | ||
if: success() | ||
with: | ||
tag: 2.4.${{ github.run_number }} | ||
artifacts: dex-tools/build/distributions/dex-tools-*.zip | ||
|
||
- name: Archive dex tools | ||
uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: dex-tools | ||
path: dex-tools/build/distributions/dex-tools-*.zip | ||
|
||
- name: Publish to Maven Central | ||
run: ./gradlew publish -Pversion=2.4.${{ github.run_number }} |