-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React s3 deploy #58
Closed
Closed
React s3 deploy #58
Conversation
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
ChristopherNavo
added
documentation
Improvements or additions to documentation
Frontend Team
labels
Feb 3, 2022
ChristopherNavo
requested review from
toddysm,
dansjack,
Annelisebx,
zaks2318 and
peterTorres7
February 3, 2022 05:25
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentation:
Closes #8
Updates PR #34
UPDATE: This PR now includes a
github/workflows
folder system with a working.yml
file that when pushed to development will run abuild
of the React App in a S3 bucket and run the App via AWS' static Website hosting.This PR updated the documentation based on research and testing on how to deploy React to an S3 bucket utilizing GitHub Actions
This includes a frontend documentation folder to store these instructions as well as future issues on the frontend side that require a document/reference.
The file instructions include:
(User Story, Total time to complete the Sprint, and Acceptance Criteria can be found on the connected Issue)
File Locations
The
S3-deploy.yml
file can be found in the.github/workfolder
folder for referenceThe
reactS3Action.md
file can be found in thefrontend/documentation
folder for reference.Time Spent on Issue:
Gallery & GitHub Action specific Instruction:
On the GitHub Repo:
Create key/value pairs for the following sensitive information:
Be sure to note the names of the keys:
How the secrets will show once submitted:
Setup GitHub Actions
Return to your working Branch
.github
folder.github
folder create another folder namedworkflows
workflows
create a.yml
file with a name that describes the action (exampleS3-deploy.yml
).yml
provided by GitHub.yml
file:What this file obtains:
The file is made of 3 different parts to help with the understanding:
To save, click on the Start Commit then Commit New File.
Doing so will:
This should successfully complete the setup.
Running the Build
Test the AWS Website
Properties
tab scroll to the bottom to Static Website Hosting to find the bucket website endpoint.Troubleshooting:
(See documentation file for more details)