Skip to content

GitHub action to perform brotli compression

Notifications You must be signed in to change notification settings

KamePowerWorld/brotli-action

 
 

Repository files navigation

compress-action

GitHub action to perform Brotli compression on .js, .html and .css files, perfect for making your web content smaller to download.

compress-action will brotli compress everything in the target directory and it's sub directories, also leaving the original uncompressed file in place.

Inputs

target-directory

Optional The directory in the action workspace to recusively compress. Defaults to the root workspace directory.

Example usage

With a target:

steps:
  - name: Checkout Repo
    uses: actions/checkout@master

  - name: Brotli compress the html, css and js files in the "build" directory
    id: brotli
    uses: charlesworth/[email protected]
    with:
      target-directory: 'build'

Without a target (target the root of the workspace):

steps:
  - name: Checkout Repo
    uses: actions/checkout@master

  - name: Brotli compress the html, css and js files in repository
    id: brotli
    uses: charlesworth/[email protected]

About

GitHub action to perform brotli compression

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 98.8%
  • Other 1.2%