Skip to content

Force pcapplusplus prefix in include #813

Force pcapplusplus prefix in include

Force pcapplusplus prefix in include #813

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: true
jobs:
doxygen:
runs-on: ubuntu-latest
container: seladb/ubuntu2204:latest
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Checkout docs repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
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: [email protected]
commit-message: Update API documentation for commit ORIGIN_COMMIT
target-branch: master