-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Doxygen documentation on PR as artifact (#164)
* Split doxygen in two jobs * try test upload * fix name * add checkout action * only upload on push to master
- Loading branch information
Showing
2 changed files
with
27 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,19 @@ name: Doxygen Deploy | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
Deploy: | ||
CreateDocumentation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -34,9 +38,24 @@ jobs: | |
- run: python3 Setup.py --build-missing | ||
- run: cmake --preset conan-linux-x86_64-release | ||
- run: cmake --build --preset conan-linux-x86_64-release -j${{ steps.cpu-cores.outputs.count }} -t doc | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: build/linux-x86_64-release/html # The folder the action should deploy. | ||
target-folder: documentation | ||
path: build/linux-x86_64-release/html | ||
name: documentation | ||
|
||
UploadDocumentation: | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
needs: CreateDocumentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: documentation | ||
path: documentation | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: documentation # The folder the action should deploy. | ||
target-folder: documentation |
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