-
Notifications
You must be signed in to change notification settings - Fork 43
Feat/add workflow preview prs #348
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
Merged
Merged
Conversation
This file contains hidden or 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
b04b267 to
92250cb
Compare
92250cb to
6297c14
Compare
6297c14 to
21f0468
Compare
0a9d797 to
ed76665
Compare
50e9313 to
a223d8f
Compare
00fe8f7 to
7e8d1c3
Compare
7e8d1c3 to
68cda03
Compare
|
🎉 A preview of this PR is available at: https://preview-developer.espressif.com/pr348/ |
georgik
approved these changes
Dec 9, 2024
Collaborator
georgik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive. LGTM
pedrominatel
approved these changes
Dec 9, 2024
Member
pedrominatel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @f-hollow!
6 tasks
f-hollow
added a commit
that referenced
this pull request
Dec 10, 2024
* fix: improve comments and name for deploy workflow * feat: clean up and improve config files * feat: add workflow to preview prs * feat: add workflow to remove preview files when pr closed
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.
Description
This PR adds the following workflows:
pr-deploy-preview-- builds a site from the source files in a PR and deploys it to the subfolder/pr<PR-number>https://preview-developer.espressif.com/pr348/pr-remove-preview-- removes the files together with the/pr<PR-number>folder earlier deployed bypr-deploy-previewThese workflows can already be used but further improvements can be done:
pr-deploy-previewbaseURLhas subfolders, see related threadsrobots.txt, consider addingnocache,noindexto each site page--cache-control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"Nice to have:
Apart from the covered updates, this PR also introduces separate config files for staging and production environments.
Related
Issue #43
Testing
--deleteonly removes the files in theDEST_DIR, and the bucket's root is unaffectedDEST_DIR, other files and folders were unaffectedrobots.txt testeris not going to crawl HTML pages, otherwise includenoindexin<head>robots.txtlooks correct to prevent crawlers from caching the preview websitesChecklist
Before submitting a Pull Request, please ensure the following: