Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #539 from web-illinois/main
Browse files Browse the repository at this point in the history
Fixing deploy scripts
  • Loading branch information
bryanjonker-illinois authored May 21, 2024
2 parents d281750 + 4ec7064 commit 3e185cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 55 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/deploy_major.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,12 @@ jobs:
- run: npm install
- run: npm rebuild
- run: npm run-script build
- name: Configure AWS Credentials (DEPRECIATED)
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }}
aws-region: us-east-2

- name: Deploy toolbox to CDN BRAND S3 bucket for major version (DEPRECIATED)
run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION --delete --acl bucket-owner-full-control
- name: Build examples for major version (DEPRECIATED)
run: npm run-script create-test-html -- --pathprefix=toolkit/$MAJORVERSION/examples/
- name: Deploy examples to CDN BRAND S3 bucket for major version (DEPRECIATED)
run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION/examples --delete --acl bucket-owner-full-control
- name: Deploy static images in examples to CDN BRAND S3 bucket for major version (DEPRECIATED)
run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION/examples/static-images --acl bucket-owner-full-control
- name: Invalidate Cloudfront cache for major version (DEPRECIATED)
run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$MAJORVERSION*"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: 'AKIAXNR47MADGK2A4HEW'
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }}
aws-access-key-id: 'AKIAXNR47MADAISLEYYZ'
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADAISLEYYZ }}
aws-region: us-east-2

- name: Deploy toolbox to S3 bucket for major version
Expand Down
38 changes: 2 additions & 36 deletions .github/workflows/deploy_minor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,45 +36,11 @@ jobs:
- run: npm install
- run: npm rebuild
- run: npm run-script build
- name: Configure AWS Credentials (DEPRECIATED)
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }}
aws-region: us-east-2

- name: Deploy toolbox to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED)
if: ${{ steps.get_version.outputs.prerelease == '' }}
run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION --delete --acl bucket-owner-full-control
- name: Build examples for minor version if not prelease (DEPRECIATED)
if: ${{ steps.get_version.outputs.prerelease == '' }}
run: npm run-script create-test-html -- --pathprefix=toolkit/$MINORVERSION/examples/
- name: Deploy examples to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED)
if: ${{ steps.get_version.outputs.prerelease == '' }}
run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION/examples --delete --acl bucket-owner-full-control
- name: Deploy static images in examples to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED)
if: ${{ steps.get_version.outputs.prerelease == '' }}
run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION/examples/static-images --acl bucket-owner-full-control
- name: Invalidate Cloudfront cache for minor version if not prelease (DEPRECIATED)
if: ${{ steps.get_version.outputs.prerelease == '' }}
run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$MINORVERSION*"

- name: Deploy toolbox to CDN BRAND S3 bucket for full version (DEPRECIATED)
run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION --delete --acl bucket-owner-full-control
- name: Build examples for full version (DEPRECIATED)
run: npm run-script create-test-html -- --pathprefix=toolkit/$FULLVERSION/examples/
- name: Deploy examples to CDN BRAND S3 bucket for full version (DEPRECIATED)
run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION/examples --delete --acl bucket-owner-full-control
- name: Deploy static images in examples to S3 bucket for full version (DEPRECIATED)
run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION/examples/static-images --acl bucket-owner-full-control
- name: Invalidate Cloudfront cache for full version (DEPRECIATED)
run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$FULLVERSION*"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: 'AKIAXNR47MADGK2A4HEW'
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }}
aws-access-key-id: 'AKIAXNR47MADAISLEYYZ'
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADAISLEYYZ }}
aws-region: us-east-2

- name: Deploy toolbox to S3 bucket for minor version if not prelease
Expand Down

0 comments on commit 3e185cd

Please sign in to comment.