Skip to content

Commit

Permalink
[install] in .github/workflows/archiver, create a zip archive instead…
Browse files Browse the repository at this point in the history
… of a tgz archive
  • Loading branch information
valassi committed Sep 26, 2024
1 parent 7bc4558 commit e5eaa66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/archiver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ for file in $(git ls-tree --name-only HEAD -r); do
cp -dp ${file} ${outdir}/${file} # preserve symlinks for AUTHORS, COPYING, COPYING.LESSER and COPYRIGHT
done

# Create the tgz archive
outtgz=cudacpp.tgz
# Create the zip archive
outzip=cudacpp.zip
cd ${tmpdir}
tar -czf ${outtgz} CUDACPP_OUTPUT
mv ${outtgz} ${topdir}
zip -qr ${outzip} CUDACPP_OUTPUT
mv ${outzip} ${topdir}
echo "Archive available on ${topdir}/${outzip}"
2 changes: 1 addition & 1 deletion .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: cudacpp.tgz
files: cudacpp.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e5eaa66

Please sign in to comment.