Skip to content

Add constructFromFactory API to accommodate parsing layers from custom functions. #2905

Add constructFromFactory API to accommodate parsing layers from custom functions.

Add constructFromFactory API to accommodate parsing layers from custom functions. #2905

Workflow file for this run

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: ${{ !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') }}
jobs:
doxygen:
runs-on: ubuntu-latest
container: seladb/ubuntu2204:latest
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Checkout docs repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
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@55306faa4ed53b815ae49e564af8cfb359d32ae2 # 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