From 26fef891ce63a3a2b8b874be773ffafb8677d07e Mon Sep 17 00:00:00 2001 From: KenHV Date: Sun, 26 May 2024 21:05:20 +0530 Subject: [PATCH] Add minify action --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8973b9f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +on: [push] + +jobs: + minify: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v4.1.6 + + - name: HTML/CSS/JS Minifier + uses: devatherock/minify-js@v3.1.0 + with: + add_suffix: false + + - name: Commit + uses: stefanzweifel/git-auto-commit-action@v5.0.1 + with: + commit_message: "bot: Minify"