Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create docs.yml #4

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: docs

on:
push:
branches: [master, dev]

jobs:
update-docs:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ${{ github.workspace }}

steps:
- name: install-doxygen
run: sudo apt update && sudo apt install -y doxygen

- name: git-config
run: |
git config user.name ${{ github.repository_owner }}
git config user.email ${{ github.repository_owner }}@users.noreply.github.com

- name: update-api-docs
uses: actions/checkout@v3
with:
ref: gh-pages
- run: |
git rebase origin/master
sudo ./docs/api/generate_api_docs.sh
mv docs/api/sphinx-out/* docs/
git commit --all --amend --no-edit
git push --force-with-lease

- name: update-wiki-pages
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: wiki
- run: |
rm -f wiki/*.md
cp docs/*.md wiki/
cd wiki
git commit --all --amend --no-edit
git push --force-with-lease
Loading