-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
34 lines (32 loc) · 797 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: 2.1
orbs:
hugo: circleci/hugo@0.2
aws-s3: circleci/aws-s3@3.0
jobs:
deploy:
docker:
- image: cimg/base:stable
resource_class: small
steps:
- attach_workspace:
at: site
- aws-s3/sync:
arguments: |
--acl public-read \
--cache-control "max-age=86400"
from: site/public
to: s3://$S3_STATICS_BUCKET_NAME
# awscli is setup by the aws-s3 orb already
- run: aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
workflows:
main:
jobs:
- hugo/build:
html-proofer: true
version: '0.55'
- deploy:
filters:
branches:
only: main
requires:
- hugo/build