diff --git a/.drone.yml b/.drone.yml index a7f1808..b02bd69 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,6 +48,9 @@ steps: from_secret: aws_region S3_WEBUI_BUCKET: from_secret: s3_webui_bucket + CF_DISTRIBUTION_ID: + from_secret: cf_distribution_id commands: - cd __sapper__/export - - aws s3 sync . s3://$S3_WEBUI_BUCKET + - aws s3 sync --delete . s3://$S3_WEBUI_BUCKET + - aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths "/*"