Skip to content

Merge pull request #15 from bryanjonker-illinois/main #144

Merge pull request #15 from bryanjonker-illinois/main

Merge pull request #15 from bryanjonker-illinois/main #144

Workflow file for this run

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 "/*"