Skip to content

Commit 5612d56

Browse files
committed
auto minify
1 parent 944b6aa commit 5612d56

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/minifycss.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ on:
33
push:
44
branches:
55
- main
6+
67
jobs:
78
minify:
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
12-
with:
13-
node-version: "20"
14-
- run: npm install -g cssnano
11+
- name: check out the repository
12+
uses: actions/checkout@v4
1513

16-
- run: npx cssnano bolt.css -o bolt.min.css
14+
- name: auto minify the files
15+
uses: nizarmah/auto-minify@v3
16+
17+
- name: auto commit the minified files
18+
uses: stefanzweifel/git-auto-commit-action@v5
19+
with:
20+
commit_message: "bot: Add auto minified files"

0 commit comments

Comments
 (0)