From 56999d11cc2da7791979b93a92691c5504ce0735 Mon Sep 17 00:00:00 2001 From: MajorDroolz Date: Mon, 19 Dec 2022 22:57:26 -0500 Subject: [PATCH] FIX: workflow --- .github/workflows/minify.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/minify.yml b/.github/workflows/minify.yml index b41f375..53af497 100644 --- a/.github/workflows/minify.yml +++ b/.github/workflows/minify.yml @@ -20,14 +20,12 @@ jobs: npm i -g terser csso-cli html-minifier # Use CLI tools to minify, overwriting existing files - - run: | - for i in `find . -name "*.js" -type f`; do terser $i --compress -o $i; done - for i in `find . -name "*.css" -type f`; do csso $i -o $i; done - for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done + - run: for i in `find . -name "*.js" -type f`; do terser $i --compress -o $i; done + - run: for i in `find . -name "*.css" -type f`; do csso $i -o $i; done + - run: for i in `find . -name "*.html" -type f`; do html-minifier --remove-comments --collapse-whitespace $i -o $i; done # Push changes to `build` branch - - run: | - git config user.name ${{github.actor}} - git config user.email ${{github.actor}}@user.noreply.github.com - git commit -am 'Automated minify of ${{github.sha}}' - git push --force -u origin build + - run: git config user.name ${{github.actor}} + - run: git config user.email ${{github.actor}}@user.noreply.github.com + - run: git commit -am 'Automated minify of ${{github.sha}}' + - run: git push --force -u origin main:build