diff --git a/.drone.yml b/.drone.yml index 8b9f3fa..5f295ce 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,7 +27,9 @@ steps: NETLIFY_API_KEY: from_secret: NETLIFY_API_KEY commands: - # - git config --global --add safe.directory "/drone/src" - - python3 -m zipfile -c um-react.zip dist/. + - | + python3 -m zipfile -c um-react.zip dist/. + cp um-react.zip dist/release-"${DRONE_COMMIT_SHA}".zip + python3 -m zipfile -c um-react-site.zip dist/. # - ./scripts/publish.sh - ./scripts/deploy.sh diff --git a/scripts/deploy.sh b/scripts/deploy.sh index ea7a1ca..efbbace 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -104,7 +104,7 @@ deploy_netlify() { # For deployment, we care a bit less if [[ -n "${NETLIFY_API_KEY}" && -n "${NETLIFY_SITE_ID}" ]]; then echo "Deploy to netlify..." - deploy_netlify um-react.zip + deploy_netlify um-react-site.zip else echo "skip netlify deployment." fi