2024-10-17 19:00:02 +08:00
|
|
|
name: Deploy Doxygen to Pages
|
2023-03-26 17:32:45 +08:00
|
|
|
|
|
|
|
# Runs on pushes targeting the default branch
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
2024-10-21 14:52:51 +08:00
|
|
|
build:
|
2023-03-26 17:32:45 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
steps:
|
2024-10-21 14:52:51 +08:00
|
|
|
- name: Checkout Git Repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2024-10-17 19:00:02 +08:00
|
|
|
- id: build
|
|
|
|
uses: mattnotmitt/doxygen-action@1.9.8
|
|
|
|
with:
|
2024-10-21 14:52:51 +08:00
|
|
|
working-directory: 'docs/'
|
|
|
|
doxyfile-path: 'Doxyfile'
|
2024-10-17 19:00:02 +08:00
|
|
|
|
2024-10-21 14:52:51 +08:00
|
|
|
- name: Upload static files as artifact
|
|
|
|
id: deployment
|
|
|
|
uses: actions/upload-pages-artifact@v3
|
2024-10-17 19:00:02 +08:00
|
|
|
with:
|
2024-10-21 14:52:51 +08:00
|
|
|
path: docs/build/html
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
|
|
|
uses: actions/deploy-pages@v4
|
|
|
|
|
2024-10-17 19:00:02 +08:00
|
|
|
|