-
Notifications
You must be signed in to change notification settings - Fork 3.4k
37 lines (35 loc) · 1.03 KB
/
minify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Auto Minify CSS/JS file
on:
push:
paths:
- 'public/assets/css/**'
- 'public/assets/js/**'
- 'public/theme/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto minify tabler theme CSS file
uses: nizarmah/auto-minify@v3
with:
directory: 'public/theme/tabler/css'
- name: Auto minify tabler theme JS file
uses: nizarmah/auto-minify@v3
with:
directory: 'public/theme/tabler/js'
- name: Auto minify asset CSS file
uses: nizarmah/auto-minify@v3
with:
directory: 'public/assets/css'
- name: Auto minify asset JS file
uses: nizarmah/auto-minify@v3
with:
directory: 'public/assets/js'
- name: Auto committing minified files
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: 'public'
commit_message: "chore: auto minified theme CSS/JS files"