Skip to content

Commit

Permalink
Publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Alek Petuskey authored and Alek Petuskey committed Jun 20, 2024
1 parent a33f3cd commit 5c5142d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/create-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: List subfolders for debugging
run: ls -d */

- name: Zip subfolders
run: |
for d in */ ; do
zip -r "${d%/}.zip" "$d"
if [ -d "$d" ]; then
zip -r "${d%/}.zip" "$d"
fi
done
- name: Create Release
Expand All @@ -30,7 +35,7 @@ jobs:
- name: Upload Release Assets
run: |
for file in *.zip; do
asset_name="${file}_${{ github.ref }}.zip"
asset_name="${file%.zip}_${{ github.ref }}.zip"
echo "Uploading $file as $asset_name"
curl \
-X POST \
Expand Down

0 comments on commit 5c5142d

Please sign in to comment.