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 b403976 commit 5ef5db1
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/artifacts_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Dynamic Workflow and Upload Files
on:
workflow_dispatch:
# inputs:
# index_document:
# description: 'Name of the index document'
# required: true
# default: 'index.html'
# error_document:
# description: 'Name of the error document'
# required: true
# default: 'error.html'
#env:
# BUCKET_NAME: udacity-website-bucket
#
inputs:
index_document:
description: 'Name of the index document'
required: true
default: 'index.html'
error_document:
description: 'Name of the error document'
required: true
default: 'error.html'
env:
BUCKET_NAME: udacity-website-bucket

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -35,15 +35,15 @@ jobs:
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
- 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

0 comments on commit 5ef5db1

Please sign in to comment.