Skip to content

Commit

Permalink
chore: docs publication pipeline [skip tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgiiFirsov authored Nov 17, 2023
1 parent 85fda9a commit 45e823f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-documentation.yml
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 }}

0 comments on commit 45e823f

Please sign in to comment.