Skip to content

Commit

Permalink
Update docs CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz committed May 27, 2024
1 parent be93a63 commit dd36a59
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,19 @@ jobs:
documentation:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: |
export export NDK_HOME=$ANDROID_NDK_HOME
export NDK_HOME=$ANDROID_NDK_LATEST_HOME
./gradlew jniGen
- name: All Javadoc
run: |
Expand All @@ -44,9 +37,9 @@ jobs:
run: |
mv build/docs/javadoc docs/.vuepress/public/
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.2
uses: pnpm/action-setup@v4
with:
version: 7.3.0
version: 8
run_install: false
- name: Build VuePress
run: |
Expand All @@ -57,7 +50,4 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/.vuepress/dist
- name: Cleanup Gradle Cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
single-commit: true

0 comments on commit dd36a59

Please sign in to comment.