File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments