-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include gzipped version of assets in console tarball (#1031)
* gzip .js, .map, and .css files inside the tarball * update nexus instructions with out/console-assets and prereqs script * run workflow on PR (will manually delete tarball) * don't run on PRs but keep the bit where we got rid of main.tar.gz
- Loading branch information
1 parent
dd7cd95
commit 03c2424
Showing
2 changed files
with
8 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,15 +26,13 @@ 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 | ||
- run: mkdir -p releases/console | ||
- name: Make <sha>.tar.gz | ||
run: tar czf releases/console/${{ github.sha }}.tar.gz --directory=dist . | ||
- name: Write sha256sum to file | ||
run: sha256sum releases/console/${{ github.sha }}.tar.gz | awk '{print $1}' > releases/console/${{ github.sha }}.sha256.txt | ||
- 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 | ||
- name: Upload files to GCP bucket | ||
id: upload-files | ||
uses: google-github-actions/[email protected] | ||
|
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
03c2424
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.
Successfully deployed to the following URLs:
console-ui-storybook – ./
console-ui-storybook-oxidecomputer.vercel.app
console-ui-storybook-git-main-oxidecomputer.vercel.app
console-ui-storybook.vercel.app