Skip to content

Commit

Permalink
workflows: Improve documentation workflow (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuhn committed Jul 13, 2021
1 parent f4f569c commit f786d3e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,33 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- name: Checkout
- name: Checkout master
uses: actions/checkout@v2
with:
persist-credentials: false
path: master
- name: Checkout gh-pages
uses: actions/checkout@v2
with:
ref: gh-pages
path: pages
- name: Install dependencies
run: |
sudo apt update || true
sudo apt --yes --no-install-recommends install doxygen
- name: Generate documentation
run: |
cd master
doxygen
- name: Copy documentation
run: |
rsync --archive --human-readable --verbose --delete master/html/. pages
touch pages/.nojekyll
- name: Commit documentation
run: |
cd pages
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add --all .
git commit --amend --reset-author --message='Doxygen ${{ github.sha }}'
git push

0 comments on commit f786d3e

Please sign in to comment.