Update Wiki #42
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
name: Update Wiki | |
on: | |
schedule: | |
- cron: "0 13 * * 1" # Runs every Monday at 9 am EST | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build documentation | |
run: ./gradlew dokkaGfm --scan --no-daemon | |
- name: Upload Documentation to Wiki | |
uses: SwiftDocOrg/github-wiki-publish-action@v1 | |
with: | |
path: "Documentation/gfm" | |
env: | |
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.WIKI_MANAGEMENT }} |