Merge pull request #15 from bryanjonker-illinois/main #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- run: npm install | |
- run: npm rebuild | |
- run: npm run-script gulp | |
- run: npm run-script eleventy | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: AKIAXNR47MADAISLEYYZ | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_FOR_AKIAXNR47MADAISLEYYZ }} | |
aws-region: us-east-2 | |
- name: Deploy static site to S3 bucket | |
run: aws s3 sync ./_site/ s3://youthlitfest.education.illinois.edu/content --delete --acl bucket-owner-full-control | |
- name: Invalidate Cloudfront cache | |
run: aws cloudfront create-invalidation --distribution-id E6ZUTVO9JT0TX --paths "/*" |