Skip to content

Commit

Permalink
Create documentation.yml (cataclysmbnteam#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored and joveeater committed Jul 10, 2022
1 parent 0b5344b commit caecde4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate Documentation

permissions:
contents: write

on:
push:
branches: [upload]
workflow_dispatch:

jobs:
documentation:
runs-on: ubuntu-latest

steps:
- name: checkout repository
uses: actions/checkout@v3

- name: cache css
id: cache-css
uses: actions/cache@v3
with:
key: doxygen-css-cache
path: ./doxygen_doc/doxygen-awesome-css

- if: ${{ steps.cache-css.outputs.cache-hit != 'true' }}
name: download css
run: |
git clone https://github.com/jothepro/doxygen-awesome-css ./doxygen_doc/doxygen-awesome-css
- name: run doxygen
uses: mattnotmitt/doxygen-action@v1.9.2
with:
working-directory: .
doxyfile-path: ./doxygen_doc/Doxyfile
# additional-packages: font-fira-code

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doxygen_doc/html/

0 comments on commit caecde4

Please sign in to comment.