Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
arrow-down-circle

GitHub Action

Generate Tailwind CSS

v1.3.2

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/[email protected]

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@v3

      - name: update tailwindcss
        uses: ZoeyVid/tailwindcss-update@main
        with:
          input: src/input.css
          output: src/output.css
          plugins: "@tailwindcss/forms"
          params: "--minify"
          
      - name: push changes
        run: |
          git config user.name "GitHub"
          git config user.email "[email protected]"
          git diff-index --quiet HEAD || git commit -sm "tailwindcss-update"
          git push