Create initial Github actions workflow to build production docs

This commit is contained in:
Andrew Gioia 2025-12-10 10:47:39 -05:00 committed by GitHub
parent 76ae5e8aa0
commit 7ec89bcb38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

55
.github/workflows/pages.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: Deploy Docs (Production)
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-production
cancel-in-progress: true
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build docs site
run: npm run publish
# upload the built docs as the GitHub Pages artifact
- name: Upload artifact for GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./docs
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4