Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
BenIVG committed Jan 29, 2025
1 parent de1816d commit 2a013d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/artifacts_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true
default: 'error.html'
env:
BUCKET_NAME: website-bucket
BUCKET_NAME: website-cache

jobs:
build:
Expand All @@ -33,17 +33,17 @@ jobs:
with:
name: udaartifact
template: udaartifact.yml
no-fail-on-empty-changeset: "1"
#
#- name: Upload files to S3 bucket
# run: |
# aws s3 cp ./website/${{ github.event.inputs.index_document }} s3://${{env.BUCKET_NAME}}
# aws s3 cp ./website/${{ github.event.inputs.error_document }} s3://${{env.BUCKET_NAME}}
#
#- name: Show S3 bucket website URL
# run: |
# aws cloudformation describe-stacks \
# --stack-name uda-artifact \
# --query 'Stacks[0].Outputs[?OutputKey==`ArtifactBucketWebsiteURL`].OutputValue' \
# --output text
# no-fail-on-empty-changeset: "1"

- name: Upload files to S3 bucket
run: |
aws s3 cp ./website/${{ github.event.inputs.index_document }} s3://${{env.BUCKET_NAME}}
aws s3 cp ./website/${{ github.event.inputs.error_document }} s3://${{env.BUCKET_NAME}}
- name: Show S3 bucket website URL
run: |
aws cloudformation describe-stacks \
--stack-name uda-artifact \
--query 'Stacks[0].Outputs[?OutputKey==`ArtifactBucketWebsiteURL`].OutputValue' \
--output text
2 changes: 1 addition & 1 deletion udaartifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Resources:
WebBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: website-bucket
BucketName: website-cache
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: error.html
Expand Down

0 comments on commit 2a013d8

Please sign in to comment.