Skip to content

Commit 2caa06d

Browse files
committed
Auto-minify (3)
1 parent dc02422 commit 2caa06d

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/minify.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1-
- name: Auto Minify
2-
uses: nizarmah/[email protected]
1+
name: Auto-minify
2+
on: [push]
3+
jobs:
4+
Minify:
5+
runs-on: ubuntu-latest
6+
steps:
7+
# Checks-out your repository under $GITHUB_WORKSPACE, so auto-minify job can access it
8+
- uses: actions/checkout@v2
9+
10+
- name: Auto Minify
11+
uses: nizarmah/[email protected]
12+
13+
# Auto commits minified files to the repository
14+
# Ignore it if you don't want to commit the files to the repository
15+
- name: Auto committing minified files
16+
uses: stefanzweifel/git-auto-commit-action@v4
17+
with:
18+
commit_message: "Github Action: Auto Minified JS and CSS files"
19+
branch: ${{ github.ref }}

0 commit comments

Comments
 (0)