-
Notifications
You must be signed in to change notification settings - Fork 385
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
Add release-zip job and workflow #4769
Conversation
This file was initially built within #4761, but moved into a separate PR for faster merging.
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
@schlessera I can't assign you as a reviewer, but feel free to do so. |
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.
I recommend keeping the dev build named just amp.zip and to put the file in a dev subdirectory, with perhaps the prod version in a prod subdirectory. This will ensure that installing amp-dev.zip
won't result in a directory slug of amp-dev
being used.
@pierlon Is the comment above with the links to the downloads not updated? |
It does, but the key phrase it was looking for ("Plugin builds are ready") was already in the comment, so no action was taken. I've modified the |
4241bf5
to
8c46356
Compare
This comment has been minimized.
This comment has been minimized.
Plugin builds for ca7f28f are ready 🛎️!
|
I had not noticed 😄. There is also 👨🍳 (man_cook) and 👩🍳 (woman_cook) but I did not want to make the emoji gender-specific. Removing the emoji is also an option, although I believe the comment would lose some flair 🎊. |
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.
The implementation details for the GitHub actions are beyond me, but I love the output! So as far as I know, this gets a ✅ from me.
@pierlon Anything left from your side?
@schlessera While you initially opened the PR and can't technically approve, do you approve?
Oh, one thing I noticed: I did a prod build locally and compared it with a prod build and I noticed that the ZIP contains the files in the merged state with Aside: At some point it would be nice as well to see if the commits in a PR cleanly cherry-pick onto the most recent release branch, and if so, create builds for them as well. |
No, that's not expected. I thought by default it would be using the git SHA of the commit to checkout the repository, but instead it is using the git ref of the branch, which is in this case |
I think on Travis this is differentiated by branch builds and PR builds. Branch builds get tested in the non-merged state, whereas PR builds do. I'm not sure how that is reflected in the action configuration. But yeah, I think creating builds with the merged state is marginally better, even though there is a small possibility that someone will be confused where other changes are coming from. Better to test the continuous-integration than the isolated branch. |
I'm inclined to agree with you on that. It would be best to test against the latest changes from the source branch so that any regressions could be discovered before merge. |
@westonruter LGTM 👍 |
Co-authored-by: Alain Schlesser <[email protected]>
Summary
release-zip
This job checks out the source, fetches Composer and npm dependencies and does a complete build.
It then uploads the produced ZIP file as an artifact with the filename having the form
amp-{branch}-{short-sha}.zip
.This file was initially built within #4761, but moved into a separate PR for faster merging.
Todo
Use production build instead of development buildBuild production and development builds.Fixes #4766
Checklist