2020-07-12 22:31:15 +08:00
|
|
|
name: doxygen-github-pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-25 17:24:43 +08:00
|
|
|
runs-on: ubuntu-20.04
|
2020-07-12 22:31:15 +08:00
|
|
|
steps:
|
2020-11-17 07:08:40 +08:00
|
|
|
- name: Set Actions Allow Unsecure Commands (temporary)
|
|
|
|
run: |
|
|
|
|
echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
2020-07-12 22:31:15 +08:00
|
|
|
- name: Checkout code
|
2020-11-17 07:08:40 +08:00
|
|
|
uses: actions/checkout@v2.3.1
|
2020-07-12 22:31:15 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install doxygen
|
|
|
|
run: sudo apt install doxygen graphviz fonts-freefont-ttf
|
|
|
|
- name: Build html docs
|
|
|
|
run: make doxygen && cp -R .circleci docs/html/
|
|
|
|
- name: Deploy gh-pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@3.5.7
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: docs/html
|
2020-11-17 07:08:40 +08:00
|
|
|
CLEAN: true
|
2020-07-12 22:31:15 +08:00
|
|
|
SINGLE_COMMIT: true
|