Skip to content

Commit 3e37b45

Browse files
authored
ci(faustwp): wrap release zips in a faustwp/ top-level directory (#2438)
Both zip steps in the release-plugin composite action ran `cd dist/faustwp && zip -r ../../foo.zip .`, which zipped the contents of the slug directory instead of the directory itself. Manual installs and downloads from GitHub Releases extracted as loose files in the current directory instead of into faustwp/. Zip from the parent dist/ instead, passing the slug as the directory to recurse into, so faustwp/ becomes the archive's top-level entry. SVN deploys via 10up's action are unaffected because they consume the dist/faustwp directory directly.
1 parent 0ef93f8 commit 3e37b45

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/release-plugin/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ runs:
4646
rsync -av --exclude-from="${{ env.PLUGIN_DIR }}/.distignore" ${{ env.PLUGIN_DIR }}/ dist/${{ env.SLUG }}
4747
4848
zip_file="faustwp.${{ env.VERSION }}.zip"
49-
cd "dist/${{ env.SLUG }}"
50-
zip -r "../../$zip_file" .
49+
cd "dist"
50+
zip -r "../$zip_file" "${{ env.SLUG }}"
5151
cd -
5252
5353
echo "zip-path=$PWD/$zip_file" >> $GITHUB_ENV
@@ -68,8 +68,8 @@ runs:
6868
sed -i -e '/\* Update URI: false/d' "dist/${{ env.SLUG }}/faustwp.php"
6969
7070
org_zip_file="faustwp.${{ env.VERSION }}.org.zip"
71-
cd "dist/${{ env.SLUG }}"
72-
zip -r "../../$org_zip_file" .
71+
cd "dist"
72+
zip -r "../$org_zip_file" "${{ env.SLUG }}"
7373
cd -
7474
7575
echo "org-zip-path=$PWD/$org_zip_file" >> $GITHUB_ENV

0 commit comments

Comments
 (0)