-
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (27 loc) · 743 Bytes
/
docs.yml
File metadata and controls
33 lines (27 loc) · 743 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
name: Docs
on:
release:
types:
- published
workflow_dispatch:
jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup git user
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Setup uv
uses: astral-sh/setup-uv@v7
- name: Install or update dependencies
run: uv sync --only-group docs --no-install-project --frozen
- name: Mike update version
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}"
uv run mike deploy --push --update-aliases ${VERSION} latest