We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85f6dac + 9d0be1f commit ec1eaacCopy full SHA for ec1eaac
1 file changed
deploy.sh
@@ -157,8 +157,12 @@ svn commit -m "Update to version $VERSION from GitHub" --no-auth-cache --non-int
157
158
if $INPUT_GENERATE_ZIP; then
159
echo "Generating zip file..."
160
- cd "$SVN_DIR/trunk" || exit
161
- zip -r "${GITHUB_WORKSPACE}/${SLUG}.zip" .
+
+ # use a symbolic link so the directory in the zip matches the slug
162
+ ln -s "${SVN_DIR}/trunk" "${SVN_DIR}/${SLUG}"
163
+ zip -r "${GITHUB_WORKSPACE}/${SLUG}.zip" "$SLUG"
164
+ unlink "${SVN_DIR}/${SLUG}"
165
166
echo "zip-path=${GITHUB_WORKSPACE}/${SLUG}.zip" >> "${GITHUB_OUTPUT}"
167
echo "✓ Zip file generated!"
168
fi
0 commit comments