-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,24 +23,17 @@ jobs: | |
npm install --legacy-peer-deps | ||
npm run build | ||
# # Push built site files to S3 production bucket | ||
# - name: Configure AWS Credentials | ||
# uses: aws-actions/configure-aws-credentials@v2 | ||
# with: | ||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# aws-region: us-west-1 | ||
# Push built site files to S3 production bucket | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-1 | ||
|
||
|
||
# - name: Deploy to S3 | ||
# run: aws s3 sync --follow-symlinks --delete ./_site s3://innovation-hub.ca.gov | ||
- name: Deploy to S3 | ||
run: aws s3 sync --follow-symlinks --delete ./_site s3://innovation-hub.ca.gov | ||
|
||
# Invalidate Cloudfront production distribution | ||
# - name: invalidate | ||
# uses: chetan/[email protected] | ||
# env: | ||
# DISTRIBUTION: 'E2N488BHQIJRCV' | ||
# PATHS: '/*' | ||
# AWS_REGION: 'us-west-1' | ||
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# - name: invalidate Cloudfront | ||
# run: AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id EUZDM53N8V5KD --paths "/*" |