Deploy documentation for v1.11-M6 #135
Workflow file for this run
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: Website | |
on: | |
pull_request: | |
branches: [website] | |
push: | |
branches: [website] | |
jobs: | |
build_publish: | |
name: Generate Website | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
check-latest: true | |
- name: Setup SBT | |
uses: sbt/setup-sbt@v1 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: ./product-page/src/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('/product-page/**/package-lock.json') }} | |
- name: Coursier Cache | |
uses: coursier/cache-action@v6 | |
- name: Build Website | |
run: ./build.sh | |
- name: Publish website | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
deploy_key: ${{ secrets.BUILD_BOT_SSH_PRIVATE_KEY }} | |
publish_dir: ./target | |
publish_branch: gh-pages |