mirror of
https://github.com/slendidev/smath.git
synced 2026-03-17 02:26:50 +02:00
51 lines
981 B
YAML
51 lines
981 B
YAML
name: Deploy Doxygen docs
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Doxygen
|
|
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz
|
|
|
|
- name: Create output directory
|
|
run: mkdir -p build/docs
|
|
|
|
- name: Generate docs
|
|
run: doxygen docs/Doxyfile
|
|
|
|
- name: Disable Jekyll
|
|
run: touch build/docs/html/.nojekyll
|
|
|
|
- name: Upload Pages artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: build/docs/html
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|