[no-issue] docs: publish API docs to GitHub Pages #6
This file contains hidden or 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: Spring Rest Docs | |
on: | |
push: | |
branches: | |
- master | |
- develop* | |
concurrency: | |
group: github-pages | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: $ | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Pages | |
uses: actions/configure-pages@v5 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "21" | |
distribution: "liberica" | |
cache: "gradle" | |
- name: Build Asciidoc | |
run: ./gradlew :server:asciidoctor --exclude-task :server:generateJooq --no-daemon | |
- name: Upload pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "./server/build/docs/asciidoc" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |