Skip to content

Commit ee17d2b

Browse files
committed
dont know man
1 parent d7bd009 commit ee17d2b

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/docker-build.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,30 @@ jobs:
2727
- name: Build with CMake
2828
run: docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest cmake --build /cpp_tutorials/build --config Release
2929

30-
# List the build directory contents for verification
30+
# Verify if build files are generated
3131
- name: List build directory contents
3232
run: docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest ls -la /cpp_tutorials/build
3333

34+
- name: Generate Doxygen documentation
35+
run: docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest doxygen /cpp_tutorials/Doxyfile
36+
37+
# Verify if documentation files are generated
38+
- name: List documentation directory contents
39+
run: docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest ls -la /cpp_tutorials/docs
40+
41+
# Upload documentation as an artifact (if the files exist)
3442
- name: Upload documentation
3543
uses: actions/upload-artifact@v3
3644
with:
3745
name: cpp_documentation
38-
path: /cpp_tutorials/docs
46+
path: /cpp_tutorials/docs # This path must exist or be adjusted
3947

48+
# Upload build artifacts as an artifact (if the files exist)
4049
- name: Upload build artifacts
4150
uses: actions/upload-artifact@v3
4251
with:
4352
name: cpp_build_output
44-
path: /cpp_tutorials/build
53+
path: /cpp_tutorials/build # This path must exist or be adjusted
4554

4655
release:
4756
needs: build
@@ -64,12 +73,21 @@ jobs:
6473
draft: false
6574
prerelease: false
6675

67-
# Replace '/cpp_tutorials/build/myapp' with the actual build artifact path
76+
# Upload build artifacts to the release
6877
- name: Upload build artifacts to release
6978
uses: actions/upload-release-asset@v1
7079
with:
7180
upload_url: ${{ steps.create_release.outputs.upload_url }}
72-
asset_path: /cpp_tutorials/build/myapp # Adjust to the actual file or artifact path
73-
asset_name: myapp # Adjust this name to what you want
81+
asset_path: /cpp_tutorials/build/your_build_artifact # Adjust to your actual file
82+
asset_name: your_build_artifact_name # Adjust this to name the artifact file
7483
asset_content_type: application/octet-stream
7584

85+
# Upload documentation to the release
86+
- name: Upload documentation to release
87+
uses: actions/upload-release-asset@v1
88+
with:
89+
upload_url: ${{ steps.create_release.outputs.upload_url }}
90+
asset_path: /cpp_tutorials/docs
91+
asset_name: cpp_documentation
92+
asset_content_type: application/zip
93+

0 commit comments

Comments
 (0)