Skip to content

Commit

Permalink
Add minify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fcrespel committed Aug 3, 2024
1 parent a36fb21 commit 4da48bf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/minify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [push]

jobs:
minify:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Minify CSS/JS
run: ./scripts/minify.sh
- name: Commit and push changes
run: |
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Minify CSS/JS"
git push
else
echo "No changes detected, nothing to commit."
fi

0 comments on commit 4da48bf

Please sign in to comment.