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

Commit 3e185cd

Browse files
Merge pull request #539 from web-illinois/main
Fixing deploy scripts
2 parents d281750 + 4ec7064 commit 3e185cd

File tree

2 files changed

+4
-55
lines changed

2 files changed

+4
-55
lines changed

.github/workflows/deploy_major.yml

+2-19
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,12 @@ jobs:
2525
- run: npm install
2626
- run: npm rebuild
2727
- run: npm run-script build
28-
- name: Configure AWS Credentials (DEPRECIATED)
29-
uses: aws-actions/configure-aws-credentials@v1
30-
with:
31-
aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }}
32-
aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }}
33-
aws-region: us-east-2
34-
35-
- name: Deploy toolbox to CDN BRAND S3 bucket for major version (DEPRECIATED)
36-
run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION --delete --acl bucket-owner-full-control
37-
- name: Build examples for major version (DEPRECIATED)
38-
run: npm run-script create-test-html -- --pathprefix=toolkit/$MAJORVERSION/examples/
39-
- name: Deploy examples to CDN BRAND S3 bucket for major version (DEPRECIATED)
40-
run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION/examples --delete --acl bucket-owner-full-control
41-
- name: Deploy static images in examples to CDN BRAND S3 bucket for major version (DEPRECIATED)
42-
run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION/examples/static-images --acl bucket-owner-full-control
43-
- name: Invalidate Cloudfront cache for major version (DEPRECIATED)
44-
run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$MAJORVERSION*"
4528

4629
- name: Configure AWS Credentials
4730
uses: aws-actions/configure-aws-credentials@v1
4831
with:
49-
aws-access-key-id: 'AKIAXNR47MADGK2A4HEW'
50-
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }}
32+
aws-access-key-id: 'AKIAXNR47MADAISLEYYZ'
33+
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADAISLEYYZ }}
5134
aws-region: us-east-2
5235

5336
- name: Deploy toolbox to S3 bucket for major version

.github/workflows/deploy_minor.yml

+2-36
Original file line numberDiff line numberDiff line change
@@ -36,45 +36,11 @@ jobs:
3636
- run: npm install
3737
- run: npm rebuild
3838
- run: npm run-script build
39-
- name: Configure AWS Credentials (DEPRECIATED)
40-
uses: aws-actions/configure-aws-credentials@v1
41-
with:
42-
aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }}
43-
aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }}
44-
aws-region: us-east-2
45-
46-
- name: Deploy toolbox to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED)
47-
if: ${{ steps.get_version.outputs.prerelease == '' }}
48-
run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION --delete --acl bucket-owner-full-control
49-
- name: Build examples for minor version if not prelease (DEPRECIATED)
50-
if: ${{ steps.get_version.outputs.prerelease == '' }}
51-
run: npm run-script create-test-html -- --pathprefix=toolkit/$MINORVERSION/examples/
52-
- name: Deploy examples to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED)
53-
if: ${{ steps.get_version.outputs.prerelease == '' }}
54-
run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION/examples --delete --acl bucket-owner-full-control
55-
- name: Deploy static images in examples to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED)
56-
if: ${{ steps.get_version.outputs.prerelease == '' }}
57-
run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION/examples/static-images --acl bucket-owner-full-control
58-
- name: Invalidate Cloudfront cache for minor version if not prelease (DEPRECIATED)
59-
if: ${{ steps.get_version.outputs.prerelease == '' }}
60-
run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$MINORVERSION*"
61-
62-
- name: Deploy toolbox to CDN BRAND S3 bucket for full version (DEPRECIATED)
63-
run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION --delete --acl bucket-owner-full-control
64-
- name: Build examples for full version (DEPRECIATED)
65-
run: npm run-script create-test-html -- --pathprefix=toolkit/$FULLVERSION/examples/
66-
- name: Deploy examples to CDN BRAND S3 bucket for full version (DEPRECIATED)
67-
run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION/examples --delete --acl bucket-owner-full-control
68-
- name: Deploy static images in examples to S3 bucket for full version (DEPRECIATED)
69-
run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION/examples/static-images --acl bucket-owner-full-control
70-
- name: Invalidate Cloudfront cache for full version (DEPRECIATED)
71-
run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$FULLVERSION*"
72-
7339
- name: Configure AWS Credentials
7440
uses: aws-actions/configure-aws-credentials@v1
7541
with:
76-
aws-access-key-id: 'AKIAXNR47MADGK2A4HEW'
77-
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }}
42+
aws-access-key-id: 'AKIAXNR47MADAISLEYYZ'
43+
aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADAISLEYYZ }}
7844
aws-region: us-east-2
7945

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

0 commit comments

Comments
 (0)