Skip to content

Deploy to GitHub Pages #476

Deploy to GitHub Pages

Deploy to GitHub Pages #476

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
schedule:
# Daily rebuild so fetched content (config docs, API specs) picks up
# changes from source repos even without a commit to this repo.
- cron: '0 6 * * *'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Fetch API specs
run: make fetch-api-specs
- name: Fetch config docs
run: make fetch-config-docs
- name: Fetch release notes
run: make fetch-release-notes
- name: Build Docusaurus
run: pnpm build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4