Skip to content

build: resume development (#15) #34

build: resume development (#15)

build: resume development (#15) #34

name: "02 - Publish Docs"
on:
workflow_dispatch:
push:
branches:
- main
paths:
- CHANGELOG.md
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Tune GitHub-hosted runner network
uses: smorimoto/tune-github-hosted-runner-network@v1
- uses: actions/checkout@v4
- run: ./scripts/is_release.sh # fail the build if unreleased changes
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "corretto"
cache: "gradle"
- uses: gradle/actions/setup-gradle@v4
- run: ./scripts/build_docs.sh ./build/docsite
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docsite