diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 00000000..e3b92162 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,21 @@ +version: 0.2 +phases: + install: + runtime-versions: + python: 3.8 + commands: + - apt-get update + - echo Installing hugo + - curl -L -o hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.82.0/hugo_0.82.0_Linux-64bit.deb + - dpkg -i hugo.deb + pre_build: + commands: - echo In pre_build phase.. + - echo Current directory is $CODEBUILD_SRC_DIR + - ls -la + build: + commands: + - hugo -v + post_build: + commands: + - aws s3 sync --delete public s3://{techva} +