Skip to content

Create empty languages list #3

Create empty languages list

Create empty languages list #3

Workflow file for this run

# taken from ThoSe1990/SphinxExample
name: Build Documents
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
pages: write
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: "Set up Python"
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
# Install a specific version of uv.
version: "0.10.0"
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: build
run: |
sudo apt-get update
sudo apt-get install git -y
sudo apt install locales
sudo locale-gen en_GB.UTF-8
git fetch --tags
cd docs
mkdir build
uv run python build_docs.py
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
# Upload entire repository
path: './pages'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}