Merge pull request #130 from cschreib/cschreib/update-deps #198
This file contains hidden or 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: Doc | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: sudo apt-get install doxygen luarocks lua5.2 lua5.2-dev | |
- name: Get Lua dependencies | |
run: | | |
sudo luarocks install ldoc | |
sudo luarocks install markdown | |
- name: Build C++ documentation | |
working-directory: ${{github.workspace}}/doc | |
shell: bash | |
run: doxygen dox.conf | |
- name: Build Lua documentation | |
working-directory: ${{github.workspace}}/doc | |
shell: bash | |
run: ldoc . | |
- name: Create deployment folder | |
working-directory: ${{github.workspace}}/doc | |
shell: bash | |
run: | | |
mkdir deploy | |
mv html lua index.html deploy/ | |
- name: Deploy to GitHub pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: ${{github.workspace}}/doc/deploy |