-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (46 loc) · 1.32 KB
/
docs.yml
File metadata and controls
55 lines (46 loc) · 1.32 KB
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
45
46
47
48
49
50
51
52
53
54
55
name: Build documentation
on:
workflow_dispatch:
push:
branches: [ main, master ]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
docs:
name: Build documentation
runs-on: ubuntu-latest
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: 'Set up Node'
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: 'Install uv'
uses: astral-sh/setup-uv@v6
with:
python-version: "3.10"
enable-cache: true
activate-environment: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: 'Set up Git'
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
echo Current branch: $BRANCH_NAME
- name: 'Install'
run: |
yarn install
# install setuptools < 81 to fix issue with pkg_resources
uv pip install -e . --group docs "setuptools<81"
- name: 'Build docs'
run: |
git fetch origin gh-pages
mike delete $BRANCH_NAME
mike deploy --push $BRANCH_NAME