Skip to content

feat: add preview static pages action #2

feat: add preview static pages action

feat: add preview static pages action #2

Workflow file for this run

name: Preview Documentation Site
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
preview:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: "docs/package-lock.json"
- name: Install dependencies
working-directory: docs
run: yarn install --frozen-lockfile
- name: Build website
working-directory: docs
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Preview Pages
uses: rajyan/preview-pages@v1
with:
source-dir: "docs/build"