Skip to content

Bump follow-redirects from 1.15.4 to 1.15.6 in /src (#964) #35

Bump follow-redirects from 1.15.4 to 1.15.6 in /src (#964)

Bump follow-redirects from 1.15.4 to 1.15.6 in /src (#964) #35

name: Deploy to Production
on:
push:
branches: [ main ]
paths:
- 'src/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy static files
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PRODUCTION_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PRODUCTION_SECRET_ACCESS_KEY }}
AWS_REGION: us-west-2
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
run: |
cd ./src
npm install
npm run build
cd ./web/public
aws s3 sync . s3://brave-production-griffin-origin/ --delete --exclude '*' --include 'index.html' --include 'bundle/*'
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"