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

Deploy documentation release workflow #119

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
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
58 changes: 57 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,60 @@ jobs:
Release/Pathfinder.Release.zip
PathfinderInstaller/dist/PathfinderInstaller.exe
PathfinderInstaller/PathfinderInstaller.py


deploy-latest-docs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
ref: docs
path: ./docs

- name: Download MkDocs
run: sudo python3 -m pip install mkdocs

- name: Download Doxygen
run: sudo apt-get install doxygen -y

- name: Download Doxybook2
uses: i3h/download-release-asset@v1
with:
owner: matusnovak
repo: doxybook2
tag: v1.4.0
file: doxybook2-linux-amd64-v1.4.0.zip
path: /tmp/release
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Doxybook2
run: |
file=$(ls /tmp/release | grep linux)
unzip "/tmp/release/$file" -d /tmp/doxybook2
sudo cp /tmp/doxybook2/bin/doxybook2 /usr/local/bin/doxybook2
sudo chmod +x /usr/local/bin/doxybook2
doxybook2 --version

- name: Generate Doxygen
run: |
doxygen ./docs/Doxyfile
mv ./doxygen ./docs/

- name: Generate Doxybook2
run: |
doxybook2 \
--input ./docs/doxygen/xml
--output ./docs/mkdocs/doxybook
--config ./docs/doxybook-config.json
cd ./docs
mkdocs build
cd ./docs

- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: docs