DiscordCoreAPI Release 2.0.8 #3592
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |