Skip to content

add docs redirects (#915) #806

add docs redirects (#915)

add docs redirects (#915) #806

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
paths:
- ".github/workflows/docs.yml"
- "docs/**"
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
working-directory: docs
steps:
- name: 🏗 Setup repository
uses: actions/checkout@v3
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: yarn
cache-dependency-path: docs/yarn.lock
- name: 📦 Install dependencies
run: yarn install --frozen-lockfile
- name: 👷 Build docs
run: yarn build
- name: 🚀 Deploy docs
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ github.token }}
publish_dir: ./docs/build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: evanbacon
user_email: baconbrix@gmail.com