Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish Javadoc to GitHub Pages

on:
push:
branches: [ main, master, dev ]
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'

- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }}
restore-keys: gradle-${{ runner.os }}-

- name: Build Javadoc
run: ./gradlew javadoc --no-daemon --console=plain

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./build/docs/javadoc
publish_branch: gh-pages
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
commit_message: 'chore(docs): update javadoc'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Empty file added .nojekyll
Empty file.
Loading