include: - project: 'vincenttunru/ci-templates' file: '/npm-node12.gitlab-ci.yml' build-website: image: node:12 stage: build script: - cd website - yarn - yarn run build artifacts: paths: - website/build release-website: image: python:3 stage: release dependencies: - build-website script: - export BUCKET="s3://$CI_PROJECT_NAME.vincenttunru.com" - pip3 install awscli --upgrade - aws s3 website $BUCKET --index-document index.html --error-document 404.html - aws s3 sync ./website/build $BUCKET only: - master