-
Notifications
You must be signed in to change notification settings - Fork 32
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
Feat/add workflow preview prs #348
Merged
Merged
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
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
13 times, most recently
from
December 5, 2024 06:47
b04b267
to
92250cb
Compare
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
from
December 5, 2024 06:51
92250cb
to
6297c14
Compare
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
from
December 5, 2024 06:52
6297c14
to
21f0468
Compare
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
10 times, most recently
from
December 5, 2024 07:08
0a9d797
to
ed76665
Compare
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
from
December 9, 2024 06:06
50e9313
to
a223d8f
Compare
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
2 times, most recently
from
December 9, 2024 07:29
00fe8f7
to
7e8d1c3
Compare
f-hollow
force-pushed
the
feat/add_workflow_preview_prs
branch
from
December 9, 2024 07:33
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
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
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-preview
These workflows can already be used but further improvements can be done:
pr-deploy-preview
baseURL
has subfolders, see related threadsrobots.txt
, consider addingnocache
,noindex
to 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
--delete
only removes the files in theDEST_DIR
, and the bucket's root is unaffectedDEST_DIR
, other files and folders were unaffectedrobots.txt tester
is not going to crawl HTML pages, otherwise includenoindex
in<head>
robots.txt
looks correct to prevent crawlers from caching the preview websitesChecklist
Before submitting a Pull Request, please ensure the following: