Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
name: Deploy docs
on:
push:
branches: [main]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Let one deploy finish rather than cancelling it mid-publish.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # lastUpdated timestamps come from git history
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: docs/package-lock.json
- run: npm ci
working-directory: docs
- run: npm run build
working-directory: docs
# The docs own this subdomain outright, so the build output sits at the
# artifact root. The apex, copperhead.sh, is served separately by the
# copperhead-site Cloudflare Worker and is not touched here.
- name: Assemble Pages artifact
run: |
mkdir -p _site
cp -r docs/dist/. _site/
echo 'docs.copperhead.sh' > _site/CNAME
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
54e85dd7fThis file is pinned to the selected release. Download the original to open it in your design tool.