Skip to content

Commit

Permalink
vite tooling plus aws workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronkruse committed Dec 19, 2023
1 parent 2474c3a commit 483c9dc
Show file tree
Hide file tree
Showing 10 changed files with 1,398 additions and 397 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-to-s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: '18'
- name: Build
working-directory: ./
run: |
npm install && npm run build-staging
- 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: vacs-map-app
run: |
aws s3 sync dist s3://stories2.theplotline.org/cafo-explorer/ --delete
- name: Clear Cloudfront cache
run: |
aws cloudfront create-invalidation --distribution-id $cloudfront_distribution --paths '/*'
Loading

0 comments on commit 483c9dc

Please sign in to comment.