Skip to content

feat: make fresh source docs in actions #14

feat: make fresh source docs in actions

feat: make fresh source docs in actions #14

name: gh pages deploy
permissions:
contents: write
actions: write
pages: write
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
name: deploy to gh-pages
runs-on: ubuntu-latest
env:
# THROW_ON_BROKEN_LINKS is not called here since verify-deployment uses it. So a PR would fail.
IS_GH_PAGES: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: package-lock.json
- name: Clear old docs references
run: make fresh
- name: 🤔 Sync latest Upstream
run: make sync-docs
- name: Build website 🔨
run: make build-docs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
single-commit: true