-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.24 KB
/
docs.yaml
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
name: "Client library: Documentation"
on:
push:
branches:
- main
pull_request:
paths:
- client/**
branches:
- main
permissions:
contents: write
jobs:
deploy-docs:
runs-on: ubuntu-latest
name: Deploy documentation to GitHub Pages
# publish on 'main' only to prevent version clutter
if: ${{ github.ref == 'refs/heads/main' }}
concurrency: docs
steps:
- uses: actions/checkout@v4
- name: Set up Python and dependencies
uses: ./.github/actions/python-deps
with:
pythonVersion: "3.12"
- name: Build pre-release documentation
run: uv run mkdocs build
- name: Archive built documentation
uses: actions/upload-artifact@v4
with:
name: docs
path: public/docs
- name: Deploy pre-release documentation
if: ${{ github.ref_name == 'main'}}
uses: ./.github/actions/mike-docs
with:
version: development
pre_release: true # include pre-release notification banner
push: true