Skip to content

ci: Define workflow to only build document #1

ci: Define workflow to only build document

ci: Define workflow to only build document #1

Workflow file for this run

name: 'Deploy doc'
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
deploy-doc:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v2
- uses: arduino/setup-task@v2
- name: Build document
run: |
task setup docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/mini18n-dirhtml
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4