-
Notifications
You must be signed in to change notification settings - Fork 674
53 lines (46 loc) · 1.65 KB
/
doxygen.yml
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
name: Build doxygen
on:
push:
branches: ["master", "dev"]
pull_request:
branches: ["dev"]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
doxygen:
runs-on: ubuntu-latest
container: seladb/ubuntu2204:latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Checkout docs repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: PcapPlusPlus/pcapplusplus.github.io
path: pcapplusplus.github.io
- name: Run doxygen
run: |
cd pcapplusplus.github.io/static/api-docs/next/doxygen
doxygen Doxyfile-ci
- name: Prepare documentation
if: github.ref == 'refs/heads/master'
run: |
cd pcapplusplus.github.io/static/api-docs/
find next/ -maxdepth 1 -type f -exec rm {} \;
rm -rf next/search/
mv next/html/* next/
- name: Upload documentation
if: github.ref == 'refs/heads/master'
uses: cpina/github-action-push-to-another-repository@07c4d7b3def0a8ebe788a8f2c843a4e1de4f6900 # main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: pcapplusplus.github.io
destination-github-username: "PcapPlusPlus"
destination-repository-name: "pcapplusplus.github.io"
user-email: noreply@github.com
commit-message: Update API documentation for commit ORIGIN_COMMIT
target-branch: master