-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: docs publication pipeline [skip tests]
- Loading branch information
1 parent
85fda9a
commit 45e823f
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish documentation | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Installing necessary tools | ||
run: | | ||
sudo apt-get install doxygen | ||
sudo apt-get install graphviz | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
- name: Configure Doxygen with CMake | ||
run: cmake . -DKDFLIB_GENERATE_DOCS=ON -DKDFLIB_DOCS_ONLY=ON -DKDFLIB_GITHUB_DOCS=ON -DKDFLIB_PRETTY_DOCS=ON | ||
|
||
- name: Generate documentation | ||
run: doxygen docs/Doxyfile | ||
|
||
- name: Publish generated content to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: doxygen/html | ||
token: ${{ secrets.ACCESS_TOKEN }} |