Skip to content

Deployment document

Deployment document #2

Workflow file for this run

name: 'Deployment document'
on:
workflow_call:
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: actions/setup-python@v5
with:
python-version-file: '.python-version'
- name: Configure venv
run: |
pip install uv
uv venv
uv pip install -r requirements-dev.lock
- name: Run tests
run: |
source .venv/bin/activate
make -C doc mini18n-dirhtml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc/_build/mini18n-dirhtml
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4