Merge pull request #2348 from SSPanel-UIM/dev #237
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.PAT }} | |
- name: Auto Minify Tabler Theme CSS file | |
uses: nizarmah/auto-minify@master | |
with: | |
directory: 'public/theme/tabler/css' | |
- name: Auto Minify Tabler Theme JS file | |
uses: nizarmah/auto-minify@master | |
with: | |
directory: 'public/theme/tabler/js' | |
- name: Auto Minify CSS file | |
uses: nizarmah/auto-minify@master | |
with: | |
directory: 'public/assets/css' | |
- name: Auto Minify JS file | |
uses: nizarmah/auto-minify@master | |
with: | |
directory: 'public/assets/js' | |
- name: Auto committing minified files | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
repository: 'public' | |
commit_message: "Github Action: Auto Minified Theme CSS/JS Files" |