-
Notifications
You must be signed in to change notification settings - Fork 3.4k
54 lines (51 loc) · 1.69 KB
/
Copy pathdoxygen.yml
File metadata and controls
54 lines (51 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
if: ${{ github.repository_owner == 'openvpn' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
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@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
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@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5