Skip to content

Commit

Permalink
Modify docs-deploy.yml (#1054)
Browse files Browse the repository at this point in the history
Co-authored-by: William Woodruff <[email protected]>
  • Loading branch information
nu1lptr0 and woodruffw authored Jan 13, 2025
1 parent 7eddfd9 commit d3efe9f
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,32 @@ on:
- master

jobs:
docs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/checkout@v3

- name: Install Doxygen
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz

- name: deps
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz
- name: docs
run: make doc
- name: Generate Documentation
run: doxygen Doxyfile

- name: deploy
uses: peaceiris/actions-gh-pages@v3.6.1
- name: upload docs artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/html
publish_branch: gh-pages
force_orphan: true
path: ./doc/html/

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
# NOTE: Needed to push to the repository.
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d3efe9f

Please sign in to comment.