From f189fcfff0474fee3aee8d0996d1a7795e67ab1e Mon Sep 17 00:00:00 2001 From: Aidan Date: Sun, 26 Jan 2025 03:09:01 -0500 Subject: [PATCH] remove action --- .gitea/workflows/minify.yaml | 50 ------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 .gitea/workflows/minify.yaml diff --git a/.gitea/workflows/minify.yaml b/.gitea/workflows/minify.yaml deleted file mode 100644 index 9157428..0000000 --- a/.gitea/workflows/minify.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: Minify HTML and CSS - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - minify: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Install minification tools - run: | - npm install -g html-minifier-terser csso-cli terser - - - name: Minify HTML files - run: | - find src/ -name '*.html' ! -name '*min*' -exec sh -c 'html-minifier-terser --collapse-whitespace --remove-comments --minify-js true --minify-css true -o "${0%.html}.min.html" "$0"' {} \; - - - name: Minify CSS files - run: | - find src/css/ -name '*.css' ! -name '*min*' -exec sh -c 'csso "$0" --output "${0%.css}.min.css"' {} \; - - - name: Minify JS files - run: | - find src/ -name '*.js' ! -name '*min*' -exec sh -c 'terser --compress --mangle --output "${0%.js}.min.js" "$0"' {} \; - - - name: Commit and push changes - env: - USERNAME_GITEA: ${{ secrets.USERNAME_GITEA }} - TOKEN_GITEA: ${{ secrets.TOKEN_GITEA }} - run: | - git config --global user.name "LibreCloud Actions Bot" - git config --global user.email "git@pontusmail.org" - git remote set-url origin https://${USERNAME_GITEA}:${TOKEN_GITEA}@git.pontusmail.org/aidan/aidxnFUNretro.git - git add . - git commit -m "[bot] Minifying HTML and CSS automatically" - git push origin main