Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

A GitHub Action for compressing files using Brotli or GZip

License

Notifications You must be signed in to change notification settings

ThiagoJaweb/ghaction-CompressFiles

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghaction-CompressFiles

A GitHub Action for compressing files using Brotli or GZip compression.

Why

In case you deploy your Blazor Web on GitHub Pages are have modified some files (*.js or *.html) and want to recompress these, use this GitHub Action.

Usage

Inputs

path (required)

The path to find the files. Default this is .

extensions

A comma separated list from all the file-extensions you want to compress. Default this is set to .js,.css,.html,.json

tools

A comman separated list from the compresion utilities you want to use. Valid values are brotli and gzip. Default both are used.

depth

Maximum folder depth to process. Default this is set to 3

Example

- name: CompressFiles
  uses: ThiagoJaweb/[email protected]
  with:
    path: ${{ env.PUBLISH_DIR }}
    extensions: '.js,.css,.html'
    tools: 'brotli,gzip'

About

A GitHub Action for compressing files using Brotli or GZip

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 79.4%
  • Dockerfile 20.6%