Skip to content

Commit

Permalink
modernize github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Jan 29, 2023
1 parent 7487559 commit 02ffca2
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,38 @@ name: Documentation

on:
push:
branches:
- master
branches: ["master"]
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install doxygen
run: sudo apt-get -y install doxygen
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

permissions:
pages: write
id-token: write

steps:
- uses: actions/checkout@v3

- uses: actions/configure-pages@v3

- name: Build documentation
working-directory: doc
run: doxygen
- name: Install doxygen
run: sudo apt-get -y install doxygen

- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./doc/html
- name: Build documentation
working-directory: doc
run: doxygen

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'doc/html'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 02ffca2

Please sign in to comment.