Skip to content

Update README.md

Update README.md #129

Workflow file for this run

name: Deploy to AWS s3 Bucket
on:
workflow_dispatch:
push:
branches: "main"
env:
cloudfront_distribution: ${{ secrets.CLOUDFRONT_DISTRIBUTION }}
jobs:
deploy-to-s3:
name: Deploy to S3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: build
run: npm install && npm run build
env:
BASE_PATH: "/farm-the-gap"
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Copy to S3
working-directory: ./
run: |
aws s3 sync build s3://stories2.theplotline.org/farm-the-gap/ --delete
- name: Clear Cloudfront cache
run: |
aws cloudfront create-invalidation --distribution-id $cloudfront_distribution --paths '/*'