Skip to content

Commit

Permalink
Merge pull request #39 from mcliff1/feat/update-20240105
Browse files Browse the repository at this point in the history
fix for load
  • Loading branch information
mcliff1 committed Jan 5, 2024
2 parents 0473c03 + 02b02ff commit ec7fb18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/s3-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Configuration for Test
uses: aws-actions/configure-aws-credentials@v2
if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ github.ref == 'refs/heads/release/dev' }}
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
Expand All @@ -71,6 +71,7 @@ jobs:
role-duration-seconds: 1800

- name: Build And Deploy
if: ${{ github.ref == 'refs/heads/master' }}
run: |
ACCOUNT_NAME=$(aws ssm get-parameter --name /foundation/account/name --query 'Parameter.Value' --output text)
echo $ACCOUNT_NAME
Expand All @@ -82,9 +83,9 @@ jobs:
aws s3 sync ./build s3://${BUCKET}/ --delete
#aws s3 cp build/index.html s3://${BUCKET}/index.html --metadata-directive REPLACE --cache-control no-cache,no-store,max-age=0
if: ${{ github.ref == 'refs/heads/master' }}
- name: Build And Deploy in Test
if: ${{ github.ref == 'refs/heads/release/dev' }}
run: |
echo "Try Me"
aws sts get-caller-identity
Expand All @@ -99,4 +100,3 @@ jobs:
aws s3 sync ./build s3://${BUCKET}/ --delete
#aws s3 cp build/index.html s3://${BUCKET}/index.html --metadata-directive REPLACE --cache-control no-cache,no-store,max-age=0
if: ${{ github.ref == 'refs/heads/release/dev' }}

0 comments on commit ec7fb18

Please sign in to comment.