[Openvpn-devel,v1] GHA: Publish Doxygen documentation to Github Pages
Commit Message
To make it more easily available to everyone.
Change-Id: I3922714972fffb3d7b1592f882d09c1fe1137241
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Yuriy Darnobyt <yura.uddr@gmail.com>
---
This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/887
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Yuriy Darnobyt <yura.uddr@gmail.com>
Comments
I haven't tested this, but since this is not affecting code, and Yuriy
says this works, fine with me.
Your patch has been applied to the master branch.
commit 30a66f72a98d7a583c524f826a94c4d3e5081688
Author: Frank Lichtenheld
Date: Fri Feb 28 18:00:45 2025 +0100
GHA: Publish Doxygen documentation to Github Pages
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Yuriy Darnobyt <yura.uddr@gmail.com>
Message-Id: <20250228170045.321832-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30989.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
new file mode 100644
@@ -0,0 +1,53 @@
+name: Deploy Doxygen documentation to Pages
+on:
+ push:
+ branches: ["master"]
+ workflow_dispatch:
+concurrency:
+ group: "pages"
+ cancel-in-progress: false
+jobs:
+ build:
+ runs-on: ubuntu-24.04
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ with:
+ path: openvpn
+
+ - name: Install dependencies
+ run: |
+ sudo apt update
+ sudo apt install -y --no-install-recommends \
+ build-essential doxygen graphviz \
+ liblzo2-dev libpam0g-dev liblz4-dev libcap-ng-dev libnl-genl-3-dev linux-libc-dev man2html libcmocka-dev python3-docutils libtool automake autoconf libssl-dev
+
+ - name: Build Doxygen documentation
+ id: build
+ run: |
+ cd openvpn
+ autoreconf -f -i
+ cd ..
+ mkdir doxygen
+ cd doxygen
+ ../openvpn/configure
+ make doxygen
+ touch doc/doxygen/html/.nojekyll
+ - name: Upload static files as artifact
+ id: deployment
+ uses: actions/upload-pages-artifact@v3.0.1
+ with:
+ path: doxygen/doc/doxygen/html/
+
+ deploy:
+ needs: build
+ permissions:
+ pages: write # to deploy to Pages
+ id-token: write # to verify the deployment originates from an appropriate source
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-24.04
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4.0.5