update script
This commit is contained in:
@@ -35,7 +35,14 @@ fi
|
|||||||
|
|
||||||
# Create a ZIP file from the project directory
|
# Create a ZIP file from the project directory
|
||||||
ZIP_NAME="package-$(date +%Y%m%d%H%M%S).zip"
|
ZIP_NAME="package-$(date +%Y%m%d%H%M%S).zip"
|
||||||
zip -r $ZIP_NAME $PROJECT_DIR
|
#zip -r "$ZIP_NAME" "$PROJECT_DIR" -x "*vendor/*" || { echo "Failed to create ZIP file"; exit 1; }
|
||||||
|
# Change to the project directory
|
||||||
|
cd "$PROJECT_DIR" || { echo "Failed to enter project directory $PROJECT_DIR"; exit 1; }
|
||||||
|
|
||||||
|
# Use git archive to respect .gitignore and exclude .git
|
||||||
|
git archive --format=zip -o "../$ZIP_NAME" HEAD
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Check if version is provided
|
# Check if version is provided
|
||||||
if [ -z "$VERSION" ]; then
|
if [ -z "$VERSION" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user