-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add to Doxygen pages, and use doxygen as a CI check. #231
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,67 @@ | ||
name: Doxygen GitHub Pages Deploy Action | ||
name: Run Doxygen and publish to GitHub pages | ||
|
||
# Generate the documentation on all merges to main, all pull requests, or by | ||
# manual workflow dispatch. The Doxygen job can be used as a CI check that all | ||
# functions are documented. The publish job only runs on new commits to the main | ||
# branch and actually pushes the generated html to the gh-pages branch (which | ||
# triggers a GitHub pages deployment). When things are a bit more stable, we can | ||
# only publish the website on release tags. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
doxygen: | ||
runs-on: macos-latest | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Install Doxygen | ||
run: brew install doxygen graphviz | ||
shell: bash | ||
|
||
- name: Run Doxygen | ||
run: doxygen doc/Doxyfile | ||
shell: bash | ||
|
||
# Disabling jekyll ensures pages with underscores work on gh pages. | ||
willGraham01 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Create .nojekyll | ||
run: touch html/.nojekyll | ||
shell: bash | ||
|
||
- name: Upload the website | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tdms_website | ||
path: html/* | ||
retention-days: 1 | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: doxygen | ||
if: github.event_name == 'push' && github.ref_name == 'main' | ||
steps: | ||
- uses: DenverCoder1/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
folder: html | ||
config_file: doc/Doxyfile | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download the content for deployment | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: tdms_website | ||
path: html | ||
# Recreate and download to the html directory just for tidiness sake. | ||
|
||
- name: Commit to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: html |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π