Skip to content

Commit

Permalink
attempt to update minify action
Browse files Browse the repository at this point in the history
  • Loading branch information
tbolt committed Oct 28, 2024
1 parent c28af60 commit 9f0f4e0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/minifycss.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Minify CSS
on: push
on:
push:
branches:
- main
jobs:
minify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
token: ${{ secrets.BOLT_BOT }}
node-version: "20"
- run: npm install -g cssnano

- name: Auto Minify
uses: nizarmah/[email protected]

# Auto commits minified files to the repository
# Ignore it if you don't want to commit the files to the repository
- name: Auto committing minified files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "minify css files"
branch: ${{ github.ref }}
- run: cssnano bolt.css -o bolt.min.css

0 comments on commit 9f0f4e0

Please sign in to comment.