Hi ๐, I'm Stef Heyenrath
- ๐ญ Iโm currently working on WireMock.Net
- ๐ฑ Iโm currently learning more Azure and Blazor
Environments
Languages
Frontends
A GitHub Action for compressing files using Brotli or GZip
License: MIT License
Environments
Languages
Frontends
Thanks for providing this GitHub action!ย
I'm currently trying to use your compression action in my mkdocs workflow with GitHub actions but I run into issues with branches/actions. See my test repo and the action docs.
The workflow is simple: whenever someone pushes to the repo, the mkdocs CI action is triggered and the site is deployed.ย
The main branch contains raw (editable) markdown files which are then converted to normal html in my gh-pages branch. The gh-pages branch serves for automatic deploy with GitHub Pages.
I have two possible ideas of how to integrate your compression.ย
path
variable, but still didn't manage to link the branches and your action.ย It rather might be a question for the mkdocs community but maybe other static site generators like Hugo, Jekyll etc. might profit from it as well.
At the moment, this Github Action calls gzip without the -n flag. This means every build produces a new file that checksums to a different checksum.
When deploying your application, you normally could use rsync --checksum flag to deal with the file modification times changing. However, since the produced gzipped files also change their checksum, it means they always gets redeployed, which means in turn the users of the webserver see the file as modified and have to download it again, even though it represents the same resource.
gzip has a flag -n for this, which does not record the original files modification date inside the gzipped archieve, which is designed for determistic builds. At the moment, this Github Action does not have a way to pass custom flags to the gzip command, so it cannot be used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.