Build docs #39
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 docs | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
name: Create docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run doxygen | |
run: | | |
cd scripts/docs | |
chmod +x gen_doc.sh | |
./gen_doc.sh | |
cd ../../ | |
- name: Upload docs | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Eduardo Hopperdietzel" | |
git checkout -b docs | |
rm -r * | |
rm -r .github | |
rm .gitignore | |
cp -r ../louvre_tmp/html ./ | |
mv html docs | |
git add . | |
git commit -m "Doxygen" | |
git push -f --set-upstream origin docs |