Skip to content

Commit

Permalink
Fixes an issue where the zip creates multiple copies of itself
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarig committed Dec 15, 2024
1 parent 83ee400 commit 240de77
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,18 @@ jobs:
echo "Tag: $tag"
echo "tag=$tag" >> $GITHUB_ENV
- name: Prepare Plugin ZIP
run: |
plugin_name="ootb-openstreetmap"
mkdir -p "$plugin_name"
rsync -av --exclude-from='.distignore' ./ "$plugin_name/"
zip -r "${plugin_name}-${tag}.zip" "$plugin_name"
- name: Prepare Plugin ZIP
run: |
plugin_name="ootb-openstreetmap"
mkdir -p "$plugin_name"
# Sync files but exclude the ZIP file itself and the output directory
rsync -av --exclude=".distignore" \
--exclude="${plugin_name}-${tag}.zip" \
--exclude="$plugin_name/" ./ "$plugin_name/"
# Create the ZIP
zip -r "${plugin_name}-${tag}.zip" "$plugin_name"
- name: Create release
env:
Expand Down

0 comments on commit 240de77

Please sign in to comment.