Skip to content

Deploy Site

Deploy Site #250

Workflow file for this run

name: Deploy Site
on:
push:
branches: [main]
paths:
- 'engineers/*.md'
# engineers.11tydata.js computes each profile's SEO title/description,
# so a change there alters every built profile page.
- 'engineers/*.js'
- 'chapters/**'
- 'jobs/**'
- 'site/**'
- 'scripts/**'
- '.eleventy.js'
- 'package.json'
- 'package-lock.json'
# Pushes made with GITHUB_TOKEN don't fire the push trigger above, so
# workflows that commit site content need to be listed here explicitly.
workflow_run:
workflows: ['Import Jobs', 'Sync Chapters']
types: [completed]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v5
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@v5
env:
NODE_OPTIONS: --no-deprecation