Merge pull request #150 from wgoadri/cmake-enable-exportation #91
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: Deploy documentation to gh-pages | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
deploy-doc: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Prepare directories | |
run: | | |
mkdir -p src/ | |
mkdir -p build/ | |
- name: Checkout remote head | |
uses: actions/checkout@master | |
with: | |
path: src/ | |
- name: Install packages | |
run : sudo apt-get install graphviz texlive-bibtex-extra | |
- name: Fetch recent doxygen (1.9.6) | |
run: | | |
curl https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz -o doxygen-1.9.6.linux.bin.tar.gz | |
tar -xvzf doxygen-1.9.6.linux.bin.tar.gz | |
- name: Configure Doc | |
run: | | |
cd build/ | |
cmake ../src/ -DCMAKE_EXECUTE_PROCESS_COMMAND_ECHO=STDOUT -DPONCA_CONFIGURE_EXAMPLES=OFF -DPONCA_CONFIGURE_TESTS=OFF -DDOXYGEN_EXECUTABLE=../doxygen-1.9.6/bin/doxygen | |
- name: Build doc | |
run: | | |
cd build/ | |
cmake --build . --target ponca-doc | |
- name: Deploy Doc | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
publish_dir: 'build/doc/html' |