mirror of
https://github.com/tinyvision-ai-inc/pico-ice.git
synced 2024-11-23 20:14:40 +00:00
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
# Sample workflow for building and deploying a Doxygen site to GitHub Pages
|
|
name: Deploy Doxygen site to Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Setup Doxygen
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install doxygen
|
|
- name: Setup Pages
|
|
id: pages
|
|
uses: actions/configure-pages@v2
|
|
- name: Build with Doxygen
|
|
run: |
|
|
cd Docs
|
|
git submodule update --init
|
|
doxygen
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: "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@v1
|