-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1003 Bytes
/
Copy pathdocs.yml
File metadata and controls
44 lines (35 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-FileCopyrightText: 2025 Alexandre Gomes Gaigalas <alganet@gmail.com>
#
# SPDX-License-Identifier: ISC
name: Documentation
on:
push:
branches: [main]
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
docs-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- uses: astral-sh/setup-uv@v7
- run: make sync-frozen
- name: Configure Git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- if: github.ref == 'refs/heads/main'
run: make docs-deploy-dev-main
- if: startsWith(github.ref, 'refs/tags/v')
run: make docs-deploy-versioned VERSION=${GITHUB_REF#refs/tags/v}