Skip to content

Commit

Permalink
Fixing release
Browse files Browse the repository at this point in the history
  • Loading branch information
jelacicedin authored Apr 22, 2024
1 parent 8fc20f4 commit d5e6db5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ jobs:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
tar -czvf myproject-${{ github.sha }}.tar.gz output_folder/
# Assuming 'make' or a custom command creates an 'output_folder' at the root of the project
# Here we add a step to list what's in the build directory
ls -la
- name: Archive the build outputs
run: |
# Ensure you are in the right directory
pwd
ls -la ..
# Replace 'output_folder' with the correct path to where your build outputs are stored
tar -czvf myproject-${{ github.sha }}.tar.gz ../output_folder/
- name: Create Release
id: create_release
Expand All @@ -49,4 +59,3 @@ jobs:
asset_path: ./build/myproject-${{ github.sha }}.tar.gz
asset_name: myproject-${{ github.sha }}.tar.gz
asset_content_type: application/gzip

0 comments on commit d5e6db5

Please sign in to comment.