Skip to content

fix: add trailingSlash to config #3

fix: add trailingSlash to config

fix: add trailingSlash to config #3

Workflow file for this run

name: Deploy
on:
push:
branches:
- 'main'
concurrency:
group: terraform-production
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build website
run: npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::966137286427:role/github-actions-pixconf-pixconf-docs
- name: Deploy to S3
run: aws s3 sync build/ s3://pixconf.vitalvas.dev/ --delete --acl=public-read --cache-control "max-age=43200, public"
- name: Invalidate CloudFront cache
run: aws cloudfront create-invalidation --distribution-id E2S6UYEG5JNF7H --paths "/*"