Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit d83d112

Browse files
committed
Cleanup deploy workflow
1 parent 22f1d1c commit d83d112

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
env:
88
AWS_REGION: us-east-1
9+
AWS_STACK_NAME: downloadmysnapchatmemories-dot-com
910

1011
jobs:
1112
create_tag:
@@ -93,11 +94,9 @@ jobs:
9394
aws-region: ${{ env.AWS_REGION }}
9495

9596
- name: Deploy CloudFormation stack
96-
run: sam deploy
97+
run: sam deploy --config-file ./samconfig.toml --region $AWS_REGION --stack-name $AWS_STACK_NAME
9798

9899
- name: Upload website content
99100
run: |
100-
sam deploy --config-file ./samconfig.toml --region $AWS_REGION
101-
102-
BUCKET=$(aws cloudformation describe-stacks --stack-name=$STACK_NAME --region $REGION --query 'Stacks[0].Outputs[?OutputKey==`S3BucketName`].OutputValue' --output text)
101+
BUCKET=$(aws cloudformation describe-stacks --stack-name=$AWS_STACK_NAME --region $REGION --query 'Stacks[0].Outputs[?OutputKey==`S3BucketName`].OutputValue' --output text)
103102
aws s3 sync docs s3://$BUCKET

0 commit comments

Comments
 (0)