-
Notifications
You must be signed in to change notification settings - Fork 146
doc: automatically update CI artifacts #2606
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
Conversation
* branches are target branches. It will be triggered as long as the target branch is main.
* move s2n-quic-ci-artifacts to the top level env * cp from hash folder to the latest to make the process simpler
I can verify that this approach works properly after this and several other PRs got merged. This PR is merged in at April 15, 2025, 10:19:40 (UTC-07:00). It ran the CI again in the Cloud Front stores its cache for 24 hours: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html. The CI artifacts in the repo will be updated to the Cloud Front distribution every 24 hours. We updated the |
Release Summary:
Resolved issues:
resolves #2302
Description of changes:
We want to update the Cloud Front distribution to use the most up to date CI artifact in S2N-QUIC's doc. Instead of just uploading objects to a folder with the commit hash, I also upload those objects into a new folder called
latest
. I have changed the Cloud Front Origin Path to use the/latest
folder to locate all artifacts.According to the github context page, event_name shows the event that triggers the workflow to run. So, only when
github.event_name
is equal topush
, a PR commit is pushed into main. We add a check for that to ensure only PR merging to main can trigger artifacts uploaded to S3. Additional event details aboutpush
can be found in this doc.Call-outs:
latest
folder.S3 cp
command.Testing:
latest
folder is properly updated./latest
folder is not updated when this PR pushes another commit.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.