Compare commits

..

No commits in common. "e79728c687b744d136f7b960ad7c90fbe4c536a7" and "c5adc9dc05cd0b4c465ca0ffa505f3ad9908a440" have entirely different histories.

2 changed files with 8 additions and 19 deletions

View File

@ -12,25 +12,20 @@ steps:
- ./scripts/build-wasm.sh - ./scripts/build-wasm.sh
- npm ci - npm ci
- npm run test - npm run test
- ./scripts/build-and-package.sh modern
- ./scripts/build-and-package.sh legacy - ./scripts/build-and-package.sh legacy
- ./scripts/build-and-package.sh extension - ./scripts/build-and-package.sh extension
- ./scripts/build-and-package.sh modern
- sha256sum *.zip > sha256sum.txt - sha256sum *.zip > sha256sum.txt
- name: upload - name: upload
image: "plugins/s3" image: plugins/s3
settings: settings:
endpoint: bucket: um-web
from_secret: S3_ENDPOINT
access_key: access_key:
from_secret: S3_ACCESS_KEY from_secret: S3_ACCESS_KEY
secret_key: secret_key:
from_secret: S3_SECRET_KEY from_secret: S3_SECRET_KEY
bucket:
from_secret: S3_BUCKET
region: "auto"
source: | source: |
*.zip *.zip
sha256sum.txt sha256sum.txt
target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/" target: /${DRONE_COMMIT_BRANCH}-latest
path_style: true

View File

@ -13,17 +13,11 @@ case "$1" in
"extension") npm run make-extension ;; "extension") npm run make-extension ;;
*) *)
echo "Unknown command: $1" echo "Unknown command: $1"
exit 1 exit 1
;; ;;
esac esac
mv dist "${DIST_NAME}" mv dist "${DIST_NAME}"
zip -rJ9 "${DIST_NAME}.zip" "${DIST_NAME}" zip -rJ9 "${DIST_NAME}.zip" "${DIST_NAME}"
rm -rf "${DIST_NAME}"
if [ "$1" == "legacy" ]; then
# For upcoming extension build
mv "${DIST_NAME}" dist
else
rm -rf "${DIST_NAME}"
fi