Skip to content

Commit

Permalink
Merge pull request #72 from JasonTheAdams/patch-1
Browse files Browse the repository at this point in the history
Always include slug directory in zip
  • Loading branch information
jeffpaul authored Jan 9, 2023
2 parents 85f6dac + 9d0be1f commit ec1eaac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,12 @@ svn commit -m "Update to version $VERSION from GitHub" --no-auth-cache --non-int

if $INPUT_GENERATE_ZIP; then
echo "Generating zip file..."
cd "$SVN_DIR/trunk" || exit
zip -r "${GITHUB_WORKSPACE}/${SLUG}.zip" .

# use a symbolic link so the directory in the zip matches the slug
ln -s "${SVN_DIR}/trunk" "${SVN_DIR}/${SLUG}"
zip -r "${GITHUB_WORKSPACE}/${SLUG}.zip" "$SLUG"
unlink "${SVN_DIR}/${SLUG}"

echo "zip-path=${GITHUB_WORKSPACE}/${SLUG}.zip" >> "${GITHUB_OUTPUT}"
echo "✓ Zip file generated!"
fi
Expand Down

0 comments on commit ec1eaac

Please sign in to comment.