GithubHelp home page GithubHelp logo

ghaction-compressfiles's Introduction

Hi ๐Ÿ‘‹, I'm Stef Heyenrath

stefh

  • ๐Ÿ”ญ Iโ€™m currently working on WireMock.Net
  • ๐ŸŒฑ Iโ€™m currently learning more Azure and Blazor

Environments

windows azure docker linux

Languages

csharp dotnet nodejs javascript typescript

Frontends

blazor angularjs vuejs bootstrap html5 chartjs

stefh

stefh

mr62rashy

ghaction-compressfiles's People

Contributors

stefh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ghaction-compressfiles's Issues

[Question] Action integration in mkdocs workflow

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.

Current workflow

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.

Idea

I have two possible ideas of how to integrate your compression.ย 

  1. Integrate it directly in the standard gh-pages action. Problem: it does everything automatically and does not offer simple customization. That's the reason why I'd prefer the second idea.
  2. Create a third branch called deploy. So when main registers a change, everything is executed as normal and gh-pages is populated with the html files. How could I then use your action to take the input from gh-pages (when ready) compress it with your action and push to deploy? I saw the 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.

Allow -n option for gzip

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.