Skip to content

Commit

Permalink
Update buildspec for pelican
Browse files Browse the repository at this point in the history
  • Loading branch information
dltj committed Nov 10, 2024
1 parent 7059258 commit cc69e4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ phases:
- export LANGUAGE="en_US.UTF-8"
build:
commands:
- bundler exec jekyll build --trace
- ls -la
- pdm run pelican html
post_build:
commands:
- aws s3 cp webmentions-cache s3://org.dltj.webmentions-cache --recursive
- cp ./assets/js/JekyllWebmentionIO.js _site/assets/js/JekyllWebmentionIO.js
# - aws s3 sync --delete --size-only --cache-control max-age=7201 _site/ "s3://${BUCKET_NAME}"
- s3deploy -bucket org.dltj.blog -region us-east-1 -source _site/ -distribution-id ${DISTRIBUTION_ID} -key $AWS_ACCESS_KEY_ID -secret $AWS_SECRET_ACCESS_KEY
- s3deploy -bucket org.dltj.blog -region us-east-1 -source output/ -distribution-id ${DISTRIBUTION_ID} -key $AWS_ACCESS_KEY_ID -secret $AWS_SECRET_ACCESS_KEY
- aws s3api put-bucket-website --bucket "${BUCKET_NAME}" --website-configuration file://s3-website-config.json

0 comments on commit cc69e4c

Please sign in to comment.