Skip to content

Commit

Permalink
ci: fixed gh pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles authored and alanlivio committed Jul 26, 2024
1 parent 83c9946 commit d9cd99e
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,38 @@ on:
- "lib/*"
- "doc/*"
- "src/*"
- ".github/workflows/gh-pages.yml"

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

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
gh-pages:
runs-on: ubuntu-latest
container:
image: rodrigodornelles/doxygen:lua
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y cmake make doxygen graphviz
- run: sudo apt-get -y update
- run: sudo apt-get -y install cmake g++
- name: cmake
working-directory: ./doc
run: cmake .
- name: build docs
working-directory: ./doc
run: cmake --build .
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
target_branch: gh-pages
build_dir: ./doc/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: 'doc/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit d9cd99e

Please sign in to comment.