Skip to content

Add Nataris Kunststueck to templates #419

Add Nataris Kunststueck to templates

Add Nataris Kunststueck to templates #419

name: Levels deploy
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Upgrade levels
run: |
python upgrader.py
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Sync files
run: |
aws s3 cp ./summary.json s3://levels.i4k/summary.json
aws s3 sync --follow-symlinks --delete ./Solutions s3://levels.i4k/Solutions
aws s3 sync --follow-symlinks --delete ./Templates s3://levels.i4k/Templates
aws s3 sync --follow-symlinks --delete ./Tutorials s3://levels.i4k/Tutorials
aws s3 sync --follow-symlinks --delete ./Developer s3://levels.i4k/Developer
aws s3 sync --follow-symlinks --delete ./Modules s3://levels.i4k/Modules
aws s3 sync --follow-symlinks --delete ./Techucation s3://levels.i4k/Techucation
- name: Invalidate Cloudfront
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID }} --paths "/*"