Skip to content

docs [skip-checks]

docs [skip-checks] #4

Workflow file for this run

name: 'Deploy Docs'
on:
workflow_dispatch:
push:
branches:
- main
- docs-*
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
defaults:
run:
shell: bash
working-directory: docs
env:
CI: true
ACTIONS_RUNNER_DEBUG: true
jobs:
build:
name: 'Build Docs'
timeout-minutes: 5
defaults:
run:
working-directory: docs
strategy:
matrix:
node-version: ['lts/*']
pnpm-version: ['latest']
os: ['ubuntu-latest']
runs-on: ${{ matrix.os }}
steps:
- name: '🔑 Checkout'
uses: actions/checkout@v3
- name: 'Install, Build, & Upload Site'
uses: withastro/[email protected]
with:
path: docs
resolve-dep-from-path: true
node-version: ${{ matrix.node-version }}
package-manager: pnpm
pnpm-version: ${{ matrix.pnpm-version }}
deploy:
needs: build
name: 'Deploy Docs'
timeout-minutes: 5
defaults:
run:
working-directory: docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
strategy:
matrix:
os: ['ubuntu-latest']
runs-on: ${{ matrix.os }}
steps:
- name: 'Deploy to GitHub Pages'
id: 'deployment'
uses: actions/[email protected]