2022-03-26 19:27:15 -04:00
|
|
|
name: Update Documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-07-03 19:32:51 -04:00
|
|
|
- 3.2
|
2022-03-28 05:37:34 -04:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/docs_update.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-07-03 19:32:51 -04:00
|
|
|
- 3.2
|
2022-03-28 05:37:34 -04:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/docs_update.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
2022-03-26 19:27:15 -04:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
2022-06-26 20:33:51 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-03-26 19:27:15 -04:00
|
|
|
jobs:
|
|
|
|
update:
|
2022-07-02 10:10:21 -04:00
|
|
|
runs-on: ubuntu-22.04
|
2022-03-26 19:27:15 -04:00
|
|
|
name: Update Online Documentation
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-12-17 21:22:54 -05:00
|
|
|
uses: actions/checkout@v3
|
2022-03-26 19:27:15 -04:00
|
|
|
|
|
|
|
- name: Install doxygen
|
|
|
|
run: |
|
|
|
|
sudo apt-get -q -o=Dpkg::Use-Pty=0 -y install doxygen graphviz
|
|
|
|
|
2022-03-27 12:13:48 -04:00
|
|
|
- name: Customize for online docs
|
|
|
|
working-directory: docs/doxygen
|
|
|
|
run: |
|
|
|
|
sed -i'' -e "s@<!--EXTRA FOOTER SCRIPT-->@<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-794025-2', 'auto');ga('send', 'pageview');</script>@" \
|
|
|
|
custom_footer.html
|
|
|
|
|
2022-03-26 19:27:15 -04:00
|
|
|
- name: Generate documentation
|
|
|
|
working-directory: docs/doxygen
|
|
|
|
run: |
|
|
|
|
./regen.sh php
|
2022-03-28 04:56:32 -04:00
|
|
|
if [[ -s doxygen.log ]]; then
|
|
|
|
echo '*** There were warnings during docs generation: ***'
|
|
|
|
echo '-----------------------------------------------------------'
|
|
|
|
cat doxygen.log
|
|
|
|
echo '-----------------------------------------------------------'
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-03-26 19:27:15 -04:00
|
|
|
|
|
|
|
- name: Upload
|
2022-07-05 07:57:47 -04:00
|
|
|
if: github.ref == 'refs/heads/3.2'
|
2022-03-26 19:27:15 -04:00
|
|
|
working-directory: docs/doxygen
|
|
|
|
env:
|
|
|
|
DOCS_WEBSITE_KEY: ${{secrets.DOCS_WEBSITE_KEY}}
|
|
|
|
DOCS_WEBSITE_SSH_CONFIG: ${{secrets.DOCS_WEBSITE_SSH_CONFIG}}
|
|
|
|
run: |
|
|
|
|
mkdir "$HOME/.ssh"
|
|
|
|
echo "$DOCS_WEBSITE_KEY" > "$HOME/.ssh/docs_website_key"
|
|
|
|
chmod 600 "$HOME/.ssh/docs_website_key"
|
|
|
|
echo "$DOCS_WEBSITE_SSH_CONFIG" > "$HOME/.ssh/config"
|
2022-07-05 07:57:47 -04:00
|
|
|
rsync --checksum --compress --delete --out-format='%n' --recursive out/html/ wxdocs:public_html/3.2/ \
|
2022-03-28 05:33:25 -04:00
|
|
|
2> >(grep -v "Warning: Permanently added" 1>&2)
|