Skip to content

Commit f67648d

Browse files
authored
+ deploy with asasvirtuais-wp dir inside zip
1 parent 3ec63df commit f67648d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ jobs:
4747
# Run composer install to update vendors
4848
composer install
4949
50-
# Create a zip file with the source code including asasvirtuais-wp.php at root and vendors
51-
zip -r "asasvirtuais-wp.zip" asasvirtuais-wp.php vendor src
50+
# Create a temporary directory and copy the required files
51+
mkdir asasvirtuais-wp
52+
cp -r asasvirtuais-wp.php vendor src asasvirtuais-wp/
53+
54+
# Create a zip file with the temporary directory, ensuring the structure is preserved
55+
zip -r "asasvirtuais-wp.zip" asasvirtuais-wp
56+
57+
# Remove the temporary directory
58+
rm -rf asasvirtuais-wp
5259
5360
# Commit and push the version updates
5461
git config --global user.email "39817766+asas-virtuais@users.noreply.github.com"

0 commit comments

Comments
 (0)