Update readme.md #33
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: deploy_main | |
on: | |
push: | |
branches: [ 'main' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Get Version | |
id: get_version | |
uses: battila7/get-version-action@v2 | |
- run: npm install | |
- run: npm rebuild | |
- name: Run Gulp for ils-contentslider | |
run: npm run-script gulp ils-contentslider | |
- name: Run Gulp for ils-twitter | |
run: npm run-script gulp ils-twitter | |
- name: Run Gulp for ils-google-analytics | |
run: npm run-script gulp ils-google-analytics | |
- name: Run Gulp for ils-input | |
run: npm run-script gulp ils-input | |
- name: Run Gulp for ils-status | |
run: npm run-script gulp ils-status | |
- name: Run Gulp for ils-xtwitter | |
run: npm run-script gulp ils-xtwitter | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-2 | |
- name: Deploy examples to S3 bucket | |
run: aws s3 sync . s3://contrib.webtheme.illinois.edu/content/ --delete | |
- name: Invalidate Cloudfront cache | |
run: aws cloudfront create-invalidation --distribution-id E7ORJKLXVSNH3 --paths "/*" |