Update CI to deploy directly to GitHub Pages (#2230)

This commit is contained in:
Luke Street 2024-10-30 16:42:43 -06:00 committed by GitHub
parent 36519ddf15
commit bbc2b87815
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 7 deletions

View File

@ -6,14 +6,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: generate docs
- name: Checkout
uses: actions/checkout@v4
- name: Run Doxygen
uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: 'Doxyfile'
- name: deploy docs to github pages
uses: peaceiris/actions-gh-pages@v4
doxyfile-path: Doxyfile
- name: Upload static files as artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/doxygen/html
path: docs/doxygen/html/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: deployment