version: 0.2 phases: install: runtime-versions: golang: 1.12 nodejs: 10 commands: - echo Entered the install phase... - apt-get -qq update && apt-get -qq install curl - apt-get -qq install asciidoctor - curl -s -L https://github.com/gohugoio/hugo/releases/download/v0.55.6/hugo_0.55.6_Linux-64bit.deb -o hugo.deb - dpkg -i hugo.deb finally: - echo Installation done build: commands: - echo Entered the build phase ... - echo Build started on `date` - cd $CODEBUILD_SRC_DIR/workshop/themes - git clone https://github.com/matcornic/hugo-theme-learn.git learn - cd ../ - hugo --quiet finally: - echo Building the HTML files finished artifacts: files: - "**/*" base-directory: $CODEBUILD_SRC_DIR/workshop/public/ discard-paths: no