Skip to content
Snippets Groups Projects
Commit 36fb385c authored by Marshall Quander's avatar Marshall Quander
Browse files

Fix build paths to point to the right spots

parent 0a38108d
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ pipeline {
stages {
stage('pre-build') {
steps {
sh 'rm -rf ./build ./tmp'
sh 'rm -rf ./dist ./tmp'
}
}
......
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment