Skip to content

Commit 490a536

Browse files
committed
ci: release zip now contains top-level dir — extract yields ready-to-load extension folder
1 parent 60149f1 commit 490a536

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,20 @@ jobs:
5656
run: |
5757
set -euo pipefail
5858
VERSION=$(jq -r .version manifest.json)
59-
zip -r "MultiLangSwitcher-v${VERSION}.zip" \
60-
manifest.json LICENSE \
59+
STAGE="MultiLangSwitcher-v${VERSION}"
60+
mkdir "$STAGE"
61+
cp manifest.json LICENSE \
6162
background.js popup.html popup.js \
6263
debug.html debug-ui.js debug-headers.js \
6364
detect.html detect.js detect-ai.js \
6465
toggle.js toggle.css \
6566
domain-rules-manager.js domain-rules.json \
6667
bootstrap.purged.css \
67-
background popup debug detect \
68-
_locales shared i18n images fonts \
69-
-x "shared/vendor/*.map"
70-
sha256sum "MultiLangSwitcher-v${VERSION}.zip" | awk '{print $1}' > digest.txt
68+
"$STAGE/"
69+
cp -r background popup debug detect _locales shared i18n images fonts "$STAGE/"
70+
find "$STAGE/shared/vendor" -name "*.map" -delete 2>/dev/null || true
71+
zip -r "${STAGE}.zip" "$STAGE"
72+
sha256sum "${STAGE}.zip" | awk '{print $1}' > digest.txt
7173
printf '%s\n' "$GITHUB_SHA" > source-sha.txt
7274
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7375
with:

0 commit comments

Comments
 (0)