Skip to content

ragarwalll/deploy-with-minimalify

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

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy to GH-Pages Using Minimalify

Minimalify Logo


npm version download License: Apache

Minimalify is a zero-dependency CLI/library for building blazing-fast, static HTML/CSS/JS sites with reusable components. Drop in your source, define a tiny config, run minimalify build, and get a fully inlined, minified build/ folder ready for deployment. Read more about Minimalify here

A composite GitHub Action to:

  • Install deps (npm, yarn, pnpm, bun, or Deno)
  • Cache node_modules
  • Run lint & format (optional)
  • Build (run build or Deno script)
  • Read outDir from JSON or JS config (outDir key; default dist)
  • Push output to a specified branch (default gh-pages)
  • Enable GitHub Pages on that branch

Inputs

Name Required Default Description
package-manager no npm npm/yarn/pnpm/bun/deno
node-version no 16 Node.js version (ignored for Deno)
cache-deps no true Cache dependencies?
precheck no true Run lint & format?
workdir no . Working directory for install/build
branch no gh-pages Branch to deploy to
config-file no minimalify.config.json JSON or JS file exporting { outDir }
github-token yes Token with repo permissions

Example

uses: ragarwalll/deploy-with-minimalify@v1
with:
  package-manager: pnpm
  node-version: '20'
  cache-deps: true
  precheck: true
  workdir: './'
  branch: gh-pages
  config-file: './minimalify.config.[js|json]'
  github-token: ${{ secrets.GITHUB_TOKEN }}

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.