forked from autorope/donkeycar
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (52 loc) · 1.45 KB
/
push-docs.yml
File metadata and controls
61 lines (52 loc) · 1.45 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
56
57
58
59
60
61
name: Push docs
on:
push:
branches:
- new_dev
paths:
- docs/**
- .github/workflows/push-docs.yml
- mkdocs.yml
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
mkdocs-build-and-push:
name: Build and deploy documentation
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.11
auto-activate: true
channels: defaults, conda-forge
- name: Cache conda environment
uses: actions/cache@v4
with:
path: /usr/share/miniconda/envs/
key: conda-${{ runner.os }}-${{ hashFiles('**/environment.yml') }}
restore-keys: |
conda-${{ runner.os }}-
- name: Display environment info
run: |
conda info
conda list
- name: Install MkDocs and dependencies
run: |
conda install mkdocs -y
pip install mkdocs-material
- name: Validate MkDocs configuration
run: mkdocs build --strict
- name: Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force -v
echo "✅ Documentation deployed to GitHub Pages"