Skip to content

Commit 7b71cd0

Browse files
author
LIGMATV
authored
Create auto-minify.yml
1 parent fde484a commit 7b71cd0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/auto-minify.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: [push]
2+
3+
jobs:
4+
minify:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: check out the repository
8+
uses: actions/checkout@v4
9+
10+
- name: auto minify files to a different directory
11+
uses: nizarmah/auto-minify@v3
12+
with:
13+
directory: 'src'
14+
output: 'dist'
15+
16+
- name: auto commit the minified files
17+
uses: stefanzweifel/git-auto-commit-action@v5
18+
with:
19+
commit_message: "bot: Add auto minified files"

0 commit comments

Comments
 (0)