Minor text updates #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Documentation | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'DoxyGen/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'DoxyGen/**' | |
jobs: | |
docs: | |
name: Build main documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends -y graphviz plantuml | |
sudo pip install LinkChecker | |
- name: Cache Doxygen 1.9.6 | |
id: cache-doxygen | |
uses: actions/cache@v4 | |
with: | |
path: /opt/doxygen-1.9.6 | |
key: doxygen-1.9.6-${{ runner.os }} | |
- name: Download Doxygen 1.9.6 | |
if: steps.cache-doxygen.outputs.cache-hit != 'true' | |
shell: bash | |
run: | | |
wget -O doxygen.tgz https://sourceforge.net/projects/doxygen/files/rel-1.9.6/doxygen-1.9.6.linux.bin.tar.gz | |
sudo tar -C /opt -xf doxygen.tgz | |
- name: Install Doxygen 1.9.6 | |
shell: bash | |
run: | | |
sudo ln -s /opt/doxygen-1.9.6/bin/doxygen /usr/local/bin/ | |
which doxygen | |
doxygen --version | |
- name: Generate doxygen | |
run: | | |
echo "::add-matcher::.github/doxygen.json" | |
DoxyGen/gen_doc.sh | |
echo "::remove-matcher owner=doxygen::" | |
- name: Run linkchecker | |
run: | | |
echo "::add-matcher::.github/linkchecker.json" | |
DoxyGen/check_links.sh | |
echo "::remove-matcher owner=linkchecker::" | |
- name: Archive documentation | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: documentation | |
path: Documentation/ | |
retention-days: 1 | |
if-no-files-found: error | |
- name: Archive documentation | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
run: | | |
cd Documentation | |
tar -cvjf /tmp/doc.tbz2 . | |
- uses: actions/checkout@v4 | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
with: | |
ref: gh-pages | |
- name: Publish documentation | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
run: | | |
rm -r main | |
mkdir main | |
cd main | |
tar -xvjf /tmp/doc.tbz2 | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Update main documentation" | |
git push |