-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (78 loc) · 2.31 KB
/
deploy-docs.yml
File metadata and controls
86 lines (78 loc) · 2.31 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Deploy Documentation to GitHub Pages
on:
push:
branches:
- master
- dev
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # 允许 action 写入仓库内容
env:
TZ: Asia/Shanghai # 设置时区为东八区(上海)
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Timezone
run: |
echo "Setting timezone to ${{ env.TZ }}"
sudo timedatectl set-timezone ${{ env.TZ }}
date # 输出当前时间以验证时区是否设置成功
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
activate-environment: ""
- name: Install GraphViz and Doxygen via Conda
shell: bash -el {0} # Important to properly activate conda env
run: |
conda update --all
conda --version
conda install -y -c conda-forge doxygen=1.9.5
which doxygen
doxygen -V
ls -l
conda install -y -c conda-forge graphviz
# Verify installation
which dot
dot -V
- name: Generate Documentation
shell: bash -el {0} # Important to properly activate conda env
run: |
which doxygen # 确保 Doxygen 已安装
which dot # 确保 Graphviz 已安装
doxygen -V # 输出 Doxygen 版本
dot -V # 输出 Graphviz 版本
pwd
ls -l
doxygen Doxyfile # 在根目录执行 Doxygen 命令,输出到 doc_doxygen 目录
ls -l
- name: Install TeX Live and Make it
uses: xu-cheng/texlive-action@v2
with:
scheme: full
texlive_version: 2024
run: |
pwd
ls -l
cd ./doc_doxygen/latex
pwd
which make
which lualatex
make
pwd
ls -l | grep refman
pwd
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: doc_doxygen
clean: true
clean-exclude: |
.gitignore
.nojekyll
README.md
index.html