Skip to content

Commit

Permalink
edit doxyfile OUTPUT_DIR & add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Nov 28, 2020
1 parent 55a6eef commit 3f1e75a
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 65 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: DoxyGen build

on:
pull_request:
push:
release:
types: [published, edited]

jobs:
build-doxygen:
runs-on: ubuntu-latest

steps:
- name: get latest release version number
id: latest_ver
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: nRF24/RF24Network
- name: checkout
uses: actions/checkout@v2
- name: overwrite doxygen tags
run: |
mkdir docs
touch doxygenAction
echo "PROJECT_NUMBER = ${{ steps.latest_ver.outputs.release }}" >> doxygenAction
echo "@INCLUDE = doxygenAction" >> Doxyfile
- name: build doxygen
uses: mattnotmitt/doxygen-action@v1
with:
working-directory: '.'
doxyfile-path: './Doxyfile'
- name: upload to github pages
if: ${{ github.event_name == 'release'}}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html
Loading

0 comments on commit 3f1e75a

Please sign in to comment.