Skip to content

Commit

Permalink
* (dev) fix github create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GuduleLapointe committed Dec 30, 2024
1 parent a46815c commit 81265c0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
PLUGIN_NAME="${PLUGIN_NAME}"
# Create a temporary directory with the plugin name
mkdir -p "${PLUGIN_NAME}"
TMP_DIR=$(mktemp -d)
# Generate exclusion arguments
EXCLUDES=""
Expand All @@ -67,15 +67,14 @@ jobs:
EXCLUDES="$EXCLUDES --exclude=.github/"
EXCLUDES="$EXCLUDES --exclude=.env"
EXCLUDES="$EXCLUDES --exclude=README.md"
EXCLUDES="$EXCLUDES --exclude=${PLUGIN_NAME}/"
# Copy files into the temporary directory
rsync -av $EXCLUDES ./ "${PLUGIN_NAME}/"
# Create the ZIP archive containing the plugin directory
zip -r "${RELEASE_ZIP}" "${PLUGIN_NAME}"
# Remove the temporary plugin directory
rm -rf "${PLUGIN_NAME}"
rsync -av $EXCLUDES ./ "$TMP_DIR/${PLUGIN_NAME}"
cd "$TMP_DIR"
zip -r "${OLDPWD}/${RELEASE_ZIP}" "${PLUGIN_NAME}"
cd "$OLDPWD"
rm -rf "$TMP_DIR"
# Verify that the ZIP file was created
if [ ! -f "${RELEASE_ZIP}" ]; then
Expand Down

0 comments on commit 81265c0

Please sign in to comment.