-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 934 Bytes
/
docs.yml
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
name: GitHub Pages Documentation
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-[a-zA-Z]*'
- 'v[0-9]+.[0-9]+.[0-9]'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
# Uses the same action as rye
# See: https://github.com/astral-sh/rye/blob/main/.github/workflows/python-lint.yml
- name: Install the latest version of rye
uses: eifinger/setup-rye@v2
with:
enable-cache: true
cache-prefix: 'docs'
- name: Configure git user
run: |
git config user.name mkdocs-bot
git config user.email mkdocs-bot@github.com
git fetch origin gh-pages --depth=1
- name: Build the docs
run: rye run ci-docs
env:
VERSION: "${{ github.ref_name }}"
ALIAS: latest