Skip to content

Deploy docs for 1.10.0-M18 (#5122) #119

Deploy docs for 1.10.0-M18 (#5122)

Deploy docs for 1.10.0-M18 (#5122) #119

Workflow file for this run

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: 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