mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-05 15:07:11 +02:00
run workflow in develop
This commit is contained in:
parent
7ad2432cc0
commit
dbb1d25d69
4
.github/workflows/minify-and-deploy.yml
vendored
4
.github/workflows/minify-and-deploy.yml
vendored
@ -3,6 +3,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
paths-ignore:
|
||||
- 'docker-mods/**'
|
||||
- '.github/**'
|
||||
@ -32,6 +33,7 @@ jobs:
|
||||
git commit -m "themes.json" || echo "Ignore commit failure, proceed"
|
||||
git push || echo "Ignore push failure, proceed"
|
||||
- name: Minify CSS
|
||||
if: ${{ github.ref == 'refs/heads/master' }}
|
||||
run: |
|
||||
sudo npm install -g minify@7.2.2
|
||||
sudo apt-get update
|
||||
@ -48,7 +50,7 @@ jobs:
|
||||
echo "Minified ${directory} > ${output_path}"
|
||||
}
|
||||
|
||||
find ./CSS -type f -iname *base.css | while read fname
|
||||
find ./css -type f -iname *base.css | while read fname
|
||||
do
|
||||
if [[ "$fname" != *"min."* ]]; then
|
||||
minify_file $fname
|
||||
|
Loading…
Reference in New Issue
Block a user