-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move doxygen to GitHub Actions (#1458)
* Checkout docs repo * Checkout docs repo * Checkout docs repo * Run doxygen * Run doxygen * Run doxygen * Test if doxygen would fail * Revert * Prepare documentation * Fix * Fix * Try `ref_name` * fix * fix * fix * fix * Fix prepare documentation * Fix prepare documentation * Fix prepare documentation * Upload documentation * Upload documentation * Upload documentation * Upload documentation * Upload documentation * Revert changes * Try to use Ubuntu 22.04 * - Cleanup - Remove build documentation from Cirrus CI - Temporary comment out the rest of Cirrus CI tasks * Move to a new workflow * Cleanup
- Loading branch information
Showing
2 changed files
with
113 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build doxygen | ||
on: | ||
push: | ||
branches: ["master", "dev"] | ||
pull_request: | ||
branches: ["dev"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
doxygen: | ||
runs-on: ubuntu-latest | ||
container: seladb/ubuntu2204:latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
|
||
- name: Checkout docs repo | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.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_name == '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_name == 'refs/heads/master' | ||
uses: cpina/github-action-push-to-another-repository@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 |