Skip to content

Commit fc96c9e

Browse files
committed
Update buildspec for pelican
1 parent 7059258 commit fc96c9e

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ WORKDIR /app
1111
RUN apt-get update && apt-get install -y \
1212
git \
1313
curl \
14+
jq \
15+
awscli \
1416
&& apt-get clean \
1517
&& rm -rf /var/lib/apt/lists/* \
1618
# Install PDM

buildspec.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ phases:
2121
- export LANGUAGE="en_US.UTF-8"
2222
build:
2323
commands:
24-
- bundler exec jekyll build --trace
24+
- ls -la
25+
- pdm run pelican html
2526
post_build:
2627
commands:
2728
- aws s3 cp webmentions-cache s3://org.dltj.webmentions-cache --recursive
2829
- cp ./assets/js/JekyllWebmentionIO.js _site/assets/js/JekyllWebmentionIO.js
2930
# - aws s3 sync --delete --size-only --cache-control max-age=7201 _site/ "s3://${BUCKET_NAME}"
30-
- 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
31+
- 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
3132
- aws s3api put-bucket-website --bucket "${BUCKET_NAME}" --website-configuration file://s3-website-config.json

pdm.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"pelican-dltj-plugin @ git+https://github.com/dltj/pelican-dltj-plugin.git",
1313
"zygote-reader @ git+https://github.com/dltj/zygote-reader",
1414
]
15-
requires-python = "==3.12.*"
15+
requires-python = "==3.12.7"
1616
readme = "README.md"
1717
license = {text = "MIT"}
1818

0 commit comments

Comments
 (0)