ci: force release to 0.1.0 #7
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: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build-docs: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install -y g++ doxygen | |
- uses: actions/setup-python@v4 | |
- name: Install python dependencies | |
run: python -m pip install sphinx sphinx-rtd-theme sphinx-sitemap breathe | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: "3.25" | |
- name: Configure CMake | |
run: cmake -B build -S . -DBUILD_DOCS=ON -DBUILD_TESTING=OFF | |
- name: Build | |
run: cmake --build build | |
- name: Setup pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: "docs/_build/html/" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |