Skip to content

Merge pull request #36 from alexanderlerch/dependabot/github_actions/… #26

Merge pull request #36 from alexanderlerch/dependabot/github_actions/…

Merge pull request #36 from alexanderlerch/dependabot/github_actions/… #26

name: Generate documentation for gh-pages
on:
push:
branches: [ master ]
jobs:
build:
name: builds docs and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Doxygen
uses: mattnotmitt/doxygen-action@edge
with:
working-directory: '.'
doxyfile-path: './doxy.config'
# store the doc files
- name: Upload Output Directory
uses: actions/upload-artifact@v3
with:
name: doc-files
path: doc
retention-days: 1
copy:
name: copies docs to gh-pages
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
ref: gh-pages
# prepare the doc files
- name: Download Output Directory
uses: actions/[email protected]
with:
name: doc-files
path: docs
# prepare the doc files
- name: Commit changes
uses: EndBug/add-and-commit@v8
with:
author_name: Alexander Lerch
author_email: [email protected]
message: 'auto-update docs'
add: '["docs/html/*"]'