Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Add newsletter content #571

Add newsletter content

Add newsletter content #571

Workflow file for this run

name: Sync content
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'content/**'
jobs:
sync_content:
name: Sync Content
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl private --follow-symlinks --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET: ${{ secrets.MANUAL_BUCKET_NAME }}
AWS_REGION: 'eu-central-1'
SOURCE_DIR: 'content'
invalidate_cache:
name: Invalidate Cache
needs: sync_content
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: awact/cloudfront-action@master
env:
AWS_REGION: 'eu-central-1'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}