s3:
environment: production
image: python:latest
stage: deploy
script:
- pip install awscli
- aws s3 cp ./ s3://$S3_BUCKET_NAME/ --recursive
only:
- master
pages:
image: alpine:latest
environment: staging
stage: deploy
script:
- mkdir -p ./public && cp ./*.* ./public/
artifacts:
paths:
- public
except:
- master