diff --git a/Jenkinsfile b/Jenkinsfile index 5951a3a73926717b32d52927973e298a09cff5c6..b5b5499fe3d17d3c5adf65f63e181ee15d72a74b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline { stages { stage('pre-build') { steps { - sh 'rm -rf ./build ./tmp' + sh 'rm -rf ./dist ./tmp' } } diff --git a/scripts/hab-build-and-push.sh b/scripts/hab-build-and-push.sh index 4c08106ba6ed167062d29e0fe739f3cbf28f37e8..40df6a3f88c8f83033134c2d4cdd40fe271b3dae 100755 --- a/scripts/hab-build-and-push.sh +++ b/scripts/hab-build-and-push.sh @@ -26,5 +26,5 @@ npm run build mkdir dist/pages mv dist/*.html dist/pages -aws s3 sync --acl public-read --cache-control "max-age=31556926" build/assets "$TARGET_S3_URL/assets" -aws s3 sync --acl public-read --cache-control "no-cache" --delete build/pages "$TARGET_S3_URL/pages/latest" +aws s3 sync --acl public-read --cache-control "max-age=31556926" dist/assets "$TARGET_S3_URL/assets" +aws s3 sync --acl public-read --cache-control "no-cache" --delete dist/pages "$TARGET_S3_URL/pages/latest"