-
-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (38 loc) · 1.57 KB
/
Build-Documentation.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
name: Build/Upload Documentation.
on:
push:
branches:
- main
jobs:
Build-Documentation:
name: Build Documentation
runs-on: ubuntu-22.04
steps:
- name: Download and install Doxygen, along with its dependencies.
run: |
sudo apt-get update
sudo git clone https://github.com/doxygen/doxygen
cd doxygen
sudo mkdir build
sudo cmake -G "Unix Makefiles"
sudo make
sudo make install
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install graphviz
- name: Collect the original Repo for the docs.
run: |
sudo git config --global user.email "[email protected]"
sudo git config --global user.name "realtimechris"
sudo git clone https://realtimechris:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/realtimechris/DiscordCoreAPI-Docs --depth=1
- name: Collect the documentation and generate it.
run: |
sudo git clone https://github.com/RealTimeChris/DiscordCoreAPI --depth=1
cd DiscordCoreAPI/Documentation/Doxygen
sudo doxygen || true
- name: Commit and push the docs to the repo.
run: |
cd DiscordCoreAPI-Docs
sudo git add .
sudo git commit -m "Updates!" || true
sudo git push origin main || true