From ab3726bc00df93f2e7aad9a74d3d752b31dd5293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Fri, 25 Oct 2024 23:14:27 +0100 Subject: [PATCH] Run image compression --- .github/workflows/compress-images.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/compress-images.yml diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml new file mode 100644 index 0000000..275944f --- /dev/null +++ b/.github/workflows/compress-images.yml @@ -0,0 +1,22 @@ +# Compress images on demand (workflow_dispatch), and on pushes to the default branch (push). +# Open a Pull Request if any images can be compressed. +name: Compress Images + +on: + workflow_dispatch: + push: + branches: "mg/compress-images" + +jobs: + compress: + name: calibreapp/image-actions + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Compress Images + id: calibre + uses: calibreapp/image-actions@1.1.0 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + compressOnly: false