From 92fb220b7fb2782760db4691b9417d0ab2dac30f Mon Sep 17 00:00:00 2001 From: Brooke Date: Thu, 14 Mar 2024 18:01:18 -0400 Subject: [PATCH] correct file locations --- .gitea/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 69d79ef..7e4b2d6 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -18,9 +18,9 @@ jobs: npm install -g uglify-js && \ npm install -g html-minifier - name: Minify HTML - run: html-minifier --input-dir . --output-dir . --file-ext html --collapse-whitespace --remove-comments --remove-optional-tags index.html + run: html-minifier --input-dir public/ --output-dir public/ --file-ext html --collapse-whitespace --remove-comments --remove-optional-tags index.html - name: Minify CSS & JS - run: uglifyjs script.js -o script.min.js && uglifyjs style.css -o style.min.css + run: uglifyjs public/script.js -o public/script.min.js && uglifyjs public/style.css -o public/style.min.css - name: Test static page run: bash ${{ gitea.workspace }}/bin/test_static_page.sh - name: Deploy to Server