Skip to content

Commit 8dd4c86

Browse files
Improved CI workflow
* Used latest @v2 action for setting up java for the CI instead of @v1. * Used single command of gradle instead of multiple commands of gradle for `Compile and prepare package` task, because gradle will automatically execute all tasks one by one.
1 parent fbf2c43 commit 8dd4c86

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
uses: actions/checkout@v3
1717

1818
- name: Set up JDK 11
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v2
2020
with:
21+
distribution: adopt
2122
java-version: 11
2223

2324
- name: Install dependencies

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ jobs:
2222
run: bash ./install_deps.sh
2323

2424
- name: Compile and prepare package
25-
run: |
26-
./gradlew buildHeaders build
27-
./gradlew assemble
28-
./gradlew androidSourcesJar
25+
run: ./gradlew buildHeaders build assemble androidSourcesJar
2926

3027
- name: Publish
3128
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository

0 commit comments

Comments
 (0)