@@ -31,26 +31,26 @@ jobs:
3131 - name : Build with CMake
3232 run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest cmake --build /cpp_tutorials/build --config Release
3333
34- # Step 5: Generate Doxygen documentation
35- - name : Generate Doxygen documentation
36- run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest doxygen /cpp_tutorials/Doxyfile
37-
38- # Verify if build files are generated
34+ # Step 5: Verify if build files are generated
3935 - name : List build directory contents
4036 run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest ls -la /cpp_tutorials/build
4137
42- # Verify if documentation files are generated
38+ # Step 6: Generate Doxygen documentation
39+ - name : Generate Doxygen documentation
40+ run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest doxygen /cpp_tutorials/Doxyfile
41+
42+ # Step 7: Verify if documentation files are generated
4343 - name : List documentation directory contents
4444 run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest ls -la /cpp_tutorials/docs
4545
46- # Upload documentation as an artifact (if the files exist)
46+ # Step 8: Upload documentation as an artifact (if files exist)
4747 - name : Upload documentation
4848 uses : actions/upload-artifact@v3
4949 with :
5050 name : cpp_documentation
5151 path : /cpp_tutorials/docs
5252
53- # Upload build artifacts as an artifact (if the files exist)
53+ # Step 9: Upload build artifacts as an artifact (if files exist)
5454 - name : Upload build artifacts
5555 uses : actions/upload-artifact@v3
5656 with :
@@ -66,12 +66,12 @@ jobs:
6666 - uses : actions/checkout@v3
6767 name : Checkout the repository
6868
69- # Step 2: Create a GitHub release using PAT_TOKEN
69+ # Step 2: Create a GitHub release using GITHUB_TOKEN or PAT_TOKEN
7070 - name : Create Release
7171 id : create_release
7272 uses : actions/create-release@v1
7373 env :
74- GITHUB_TOKEN : ${{ secrets.PAT_TOKEN }} # Use Personal Access Token (PAT)
74+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Use GITHUB_TOKEN or PAT_TOKEN
7575 with :
7676 tag_name : ${{ github.ref_name }} # Use the pushed tag as the release tag
7777 release_name : Release ${{ github.ref_name }} # Name the release after the tag
8080 draft : false
8181 prerelease : false
8282
83- # Step 3: Upload build artifacts to the release
83+ # Step 3: Upload build artifacts to release
8484 - name : Upload build artifacts to release
8585 uses : actions/upload-release-asset@v1
8686 with :
8989 asset_name : your_build_artifact_name # Adjust this to name the artifact file
9090 asset_content_type : application/octet-stream
9191
92- # Step 4: Upload documentation to the release
92+ # Step 4: Upload documentation to release
9393 - name : Upload documentation to release
9494 uses : actions/upload-release-asset@v1
9595 with :
0 commit comments