Skip to content
arrow-down-circle

GitHub Action

Generate Tailwind CSS

v1.4.0 Latest version

Generate Tailwind CSS

arrow-down-circle

Generate Tailwind CSS

Creates Tailwind CSS CSS Files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Generate Tailwind CSS

uses: ZoeyVid/tailwindcss-update@v1.4.0

Learn more about this action in ZoeyVid/tailwindcss-update

Choose a version

tailwindcss-update

name: tailwindcss-update

on:
  push:
  schedule:
    - cron:  "0 */6 * * *"
  workflow_dispatch:

jobs:          
  tailwindcss-update:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: update tailwindcss
        uses: ZoeyVid/tailwindcss-update@main
        with:
          input: src/input.css
          output: src/output.css
          params: "--minify"
          
      - name: push changes
        run: |
          git add --force src/output.css
          git config user.name "GitHub"
          git config user.email "noreply@github.com"
          git diff-index --quiet HEAD || git commit -sm "tailwindcss-update"
          git push