-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1018 Bytes
/
dev-docs-publish.yml
File metadata and controls
48 lines (40 loc) · 1018 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Publish Docs
on:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
workflow_dispatch:
inputs:
version:
description: "Version to deploy (e.g., 1.0.0 or dev)"
required: false
default: "dev"
permissions:
contents: write
actions: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup environment
uses: ./.github/actions/setup
with:
sync-args: --group dev
configure-git-identity: 'true'
- name: Fetch gh-pages branch
run: |
git fetch origin gh-pages --depth=1 || echo "gh-pages branch does not exist yet"
- name: Deploy dev docs (main branch)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: uv run mike deploy --push dev