Compare commits
2 Commits
c5adc9dc05
...
e79728c687
Author | SHA1 | Date | |
---|---|---|---|
e79728c687 | |||
9b3dfc0ed6 |
13
.drone.yml
13
.drone.yml
@ -12,20 +12,25 @@ 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:
|
||||||
bucket: um-web
|
endpoint:
|
||||||
|
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_COMMIT_BRANCH}-latest
|
target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/"
|
||||||
|
path_style: true
|
||||||
|
@ -20,4 +20,10 @@ esac
|
|||||||
|
|
||||||
mv dist "${DIST_NAME}"
|
mv dist "${DIST_NAME}"
|
||||||
zip -rJ9 "${DIST_NAME}.zip" "${DIST_NAME}"
|
zip -rJ9 "${DIST_NAME}.zip" "${DIST_NAME}"
|
||||||
|
|
||||||
|
if [ "$1" == "legacy" ]; then
|
||||||
|
# For upcoming extension build
|
||||||
|
mv "${DIST_NAME}" dist
|
||||||
|
else
|
||||||
rm -rf "${DIST_NAME}"
|
rm -rf "${DIST_NAME}"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user