-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (35 loc) · 1.08 KB
/
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
40
41
42
43
44
45
46
name: dev docs
on:
# run this workflow when dev checks pass
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "docs"
docs:
name: Build and deploy (dev) docs
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- name: Get repo
uses: actions/checkout@v4
- name: Get gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Configure git for github-actions[bot]
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Install the latest version of uv
id: setup-uv
uses: astral-sh/setup-uv@v2
with:
version: "0.5.2"
- name: Set up Python
run: uv sync --python ${{ matrix.python-version }}
- name: Install dependencies
run: uvx --from poethepoet poe doc-push