Skip to content

Merge pull request #72 from abn/fix-linting #36

Merge pull request #72 from abn/fix-linting

Merge pull request #72 from abn/fix-linting #36

Workflow file for this run

name: Generate Documentation
on:
push:
branches: ["master"]
paths:
- src/**
- package.json
- README.md
- .github/workflows/docs.yaml
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup build environment
uses: ./.github/actions/setup
- name: Generate documentation
shell: bash
run: pnpm run build:docs
- name: Archive documentation
uses: actions/upload-artifact@v4
with:
name: docs
path: |
docs/
deploy:
name: Deploy Documentation
needs: build
if: github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Download generated documentation
uses: actions/download-artifact@v4
with:
name: docs
path: docs/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4