From 84799d7fd95d697ab1d4bbb96c4f51c8af5cac27 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 5 Mar 2020 21:14:54 +0100 Subject: [PATCH] Add GitHub Action to compress images automatically --- .github/workflows/compress.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/compress.yml diff --git a/.github/workflows/compress.yml b/.github/workflows/compress.yml new file mode 100644 index 00000000..80b2bc71 --- /dev/null +++ b/.github/workflows/compress.yml @@ -0,0 +1,18 @@ +name: Compress + +on: + pull_request: + paths: + - "src/**.png" + +jobs: + compress: + name: Images + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Compress Images + uses: calibreapp/image-actions@master + with: + githubToken: ${{ secrets.GITHUB_TOKEN }}