s3-sync-action | 🔄 GitHub Action to sync a directory with a remote S3 bucket | Continous Integration library
kandi X-RAY | s3-sync-action Summary
kandi X-RAY | s3-sync-action Summary
GitHub Action to sync a directory with a remote S3 bucket 🧺
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of s3-sync-action
s3-sync-action Key Features
s3-sync-action Examples and Code Snippets
Community Discussions
Trending Discussions on s3-sync-action
QUESTION
I'm trying to set up a react website using CICD principles. I can run it locally, use 'npm run build' to get a build folder, and the website works fine when I manually push the files to S3. However, when I try to run the build and deployment through github actions, the upload-artifacts step gives the following warning: 'Warning: No files were found with the provided path: build. No artifacts will be uploaded.' Obviously the deploy job then fails since it can't find any artifacts to download. Why exactly is this happening? The build folder is definitely being created since running ls after the build lists it as one of the folders in the current working directory.
...ANSWER
Answered 2021-Jun-05 at 01:09It turns out that my knowledge of github actions was incomplete. When setting a default working directory for jobs, the default directory is only used by commands that use 'run'. Hence all of the 'uses' actions are run in the base directory. I guess I've never encountered this issue since I've never tried uploading/downloading artifacts that weren't created in a base github directory.
Fixed the issue by changing the path from 'build/' to 'frontend/build'.
QUESTION
I am using s3 bucket, to deploy my html website. Now I have created a github action that will deploy to s3 buckeet when pushed to main.
Now I have created a develop branch and want to merge my changes to master using Pull Request, I have written another github action to sync to s3 bucket when a PR is created on master to view the changes before merging it.
I am able to create a PR and the github action is also triggered, and the s3 bucket is getting synced and website is deployed, thing is I want the link of the website to be in the PR as well.
I am unable to figure that out. Is it possible to display the link to the website when the action is completed?
My Actions workfile:
...ANSWER
Answered 2020-Nov-02 at 12:37If you know the website link upfront (or you are able to retrieve it in some automated way) then you can add it as a PR comment after deploying the website to S3. You can use a dedicated GitHub Action to add a customized PR comment with a link to the deployed website. There are plenty of them on GitHub Marketplace.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install s3-sync-action
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page