Skip to content

Commit

Permalink
[doc] doxygen attach github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
supperthomas authored Jan 2, 2025
1 parent 73ea6da commit 9b6aede
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ on:
schedule:
- cron: '0 16 30 * *'
workflow_dispatch:


permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-22.04
name: doxygen_doc generate
if: github.repository_owner == 'RT-Thread'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
with:
submodules: 'recursive'
- name: Install Tools
Expand All @@ -36,3 +41,20 @@ jobs:
cd documentation/doxygen
doxygen Doxyfile
cat Doxyfile
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@main # or specific "vX.X.X" version tag for this action
with:
path: documentation/doxygen/html/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main

0 comments on commit 9b6aede

Please sign in to comment.