From 831a3b2fc73fe37fe220e01aaa65133c6b512b25 Mon Sep 17 00:00:00 2001 From: Dan0sz <18595395+Dan0sz@users.noreply.github.com> Date: Fri, 12 Apr 2024 08:39:31 +0200 Subject: [PATCH] Make sure release asset is zipped with its directory. --- .github/workflows/prerelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 15c8014..1f1b700 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -18,7 +18,8 @@ jobs: - name: Generate plugin asset run: | - rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" release/ --delete --delete-excluded + mkdir -p release/host-analyticsjs-local + rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" release/host-analyticsjs-local/ --delete --delete-excluded cd "${GITHUB_WORKSPACE}/release" || exit zip -r "${GITHUB_WORKSPACE}/host-analyticsjs-local.zip" .