Skip to content

feat/dark-mode (#15) #5

feat/dark-mode (#15)

feat/dark-mode (#15) #5

Workflow file for this run

name: Build Docs
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'website/**'
workflow_dispatch:
permissions:
contents: write
jobs:
build-docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: ./website/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./website
- name: Build website
run: yarn build
working-directory: ./website
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./website/build
user_name: lyearnDev
user_email: [email protected]