Skip to content

Fixes typo

Fixes typo #30

Workflow file for this run

name: Deploy Docs
on:
workflow_dispatch:
# No settings needed
push:
branches:
# Can’t run this until we can gen API docs on GH Actions too
# - 4.x
# pull_request:
# branches: [ "main" ]
defaults:
run:
working-directory: ./docs
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: clean install
run: |
npm ci
# - name: test
# run: npm test
- name: build docs
run: |
npm run build --if-present
env:
FATHOM_SITE_ID: ${{ secrets.FATHOM_SITE_ID }}
SITE_URL: ${{ secrets.SITE_URL }}
- name: deploy
run: |
# As a run script, to keep it with manual deploy command:
npm run deploy:ci
# Custom in actions:
# npx surge ./public ${{ secrets.SITE_URL }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
SITE_URL: ${{ secrets.SITE_URL }}