feat: Added cmake option that allows you to build docs on a non-cuda … #7
Workflow file for this run
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: Generate and Deploy Doxygen Documentation | |
on: push | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- name: Install Doxygen | |
run: sudo apt-get install doxygen | |
- name: Install CMake | |
run: sudo apt-get install cmake | |
- name: Configure CMake | |
run: cmake -S . -DBUILD_NETSCI=OFF -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_SAMPLES=OFF -DGENERATE_DOCS=ON | |
- name: Build Doxygen Documentation | |
run: make docs | |
- name: Checkout GitHub Pages Repository | |
uses: actions/checkout@v2 | |
with: | |
repository: 'netscianalysis/netscianalysis.github.io' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
path: gh-pages | |
- name: Copy Documentation to GitHub Pages Repository | |
run: cp -r ../docs/html/* gh-pages/ | |
- name: Commit and Push Documentation | |
run: | | |
cd gh-pages | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "feat: Update documentation" | |
git push origin main |