Skip to content

Deploy documentation #1

Deploy documentation

Deploy documentation #1

Workflow file for this run

name: Deploy documentation
on:
push:
branches: [main]
paths:
- 'docs/**'
workflow_run:
workflows: ["Run tests"]
types: [completed]
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
if: >
github.event_name != 'workflow_run' ||
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v4
- name: Download coverage report
if: github.event_name == 'workflow_run'
uses: actions/download-artifact@v4
with:
name: coverage-report
path: docs/public/coverage
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Download coverage badge
if: github.event_name == 'workflow_run'
uses: actions/download-artifact@v4
with:
name: coverage-badge
path: docs/public/coverage
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- uses: withastro/action@v5
with:
path: ./docs
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment