Browse Source

run workflow in develop

pull/280/head
GilbN 4 years ago
parent
commit
dbb1d25d69
  1. 4
      .github/workflows/minify-and-deploy.yml

4
.github/workflows/minify-and-deploy.yml

@ -3,6 +3,7 @@ on:
push: push:
branches: branches:
- master - master
- develop
paths-ignore: paths-ignore:
- 'docker-mods/**' - 'docker-mods/**'
- '.github/**' - '.github/**'
@ -32,6 +33,7 @@ jobs:
git commit -m "themes.json" || echo "Ignore commit failure, proceed" git commit -m "themes.json" || echo "Ignore commit failure, proceed"
git push || echo "Ignore push failure, proceed" git push || echo "Ignore push failure, proceed"
- name: Minify CSS - name: Minify CSS
if: ${{ github.ref == 'refs/heads/master' }}
run: | run: |
sudo npm install -g minify@7.2.2 sudo npm install -g minify@7.2.2
sudo apt-get update sudo apt-get update
@ -48,7 +50,7 @@ jobs:
echo "Minified ${directory} > ${output_path}" 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 do
if [[ "$fname" != *"min."* ]]; then if [[ "$fname" != *"min."* ]]; then
minify_file $fname minify_file $fname

Loading…
Cancel
Save