-
Notifications
You must be signed in to change notification settings - Fork 12
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
Include gzipped version of assets in console tarball #1031
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -26,6 +26,8 @@ jobs: | |||
- run: yarn install | |||
- name: Build for Nexus | |||
run: SHA=${{ github.sha }} yarn build-for-nexus | |||
- name: Gzip individual files (keep originals) | |||
run: ls dist/assets/*.{js,css,map} | xargs gzip --keep |
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 love xargs
- name: Copy files to main.* | ||
run: | | ||
cp releases/console/${{ github.sha }}.tar.gz releases/console/main.tar.gz | ||
cp releases/console/${{ github.sha }}.sha256.txt releases/console/main.sha256.txt |
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.
99% sure nobody was using this, for reasons indicated by the changes to serve-from-nexus.md
— ./tools/install_prerequisites.sh
in Omicron handles the whole thing for you and it points to a commit.
Console side of oxidecomputer/omicron#1345. I tried it locally, but need to change the workflow file to run on this PR (instead of only main) to confirm that it works in a GH action.
The
serve-from-nexus.md
changes aren't really relevant to the change, I had just been meaning to do it and used the instructions when testing locally.I'm only gzipping
.js
,.map
, and.css
files. According to this, unlike other font file types,woff
are already compressed so you should not compress them.