Skip to content

Publish docs via GitHub Pages #12543

Publish docs via GitHub Pages

Publish docs via GitHub Pages #12543

Workflow file for this run

name: Publish docs via GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
inputs:
remote_repo:
description: "Remote repository name that triggered workflow"
required: true
schedule:
- cron: "0 7-18 * * 1-5"
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Test Build
run: |
yarn install --frozen-lockfile
yarn run build
- name: Release to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build