mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-08 06:38:41 -04:00
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.
This commit is contained in:
parent
fbf2c43aab
commit
8dd4c86ca6
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -16,8 +16,9 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
|
distribution: adopt
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -22,10 +22,7 @@ jobs:
|
|||||||
run: bash ./install_deps.sh
|
run: bash ./install_deps.sh
|
||||||
|
|
||||||
- name: Compile and prepare package
|
- name: Compile and prepare package
|
||||||
run: |
|
run: ./gradlew buildHeaders build assemble androidSourcesJar
|
||||||
./gradlew buildHeaders build
|
|
||||||
./gradlew assemble
|
|
||||||
./gradlew androidSourcesJar
|
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
|
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
|
||||||
|
Loading…
x
Reference in New Issue
Block a user