From f0cccc8b998bc6f4c26acc793851dcbc3ae2d2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 13 Sep 2019 10:38:30 +0200 Subject: [PATCH] Add image actions See https://github.com/gohugoio/hugoThemesSite/issues/64 --- .github/calibre/image-actions.yml | 6 ++++++ .github/workflows/calibreapp-image-actions.yml | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .github/calibre/image-actions.yml create mode 100644 .github/workflows/calibreapp-image-actions.yml diff --git a/.github/calibre/image-actions.yml b/.github/calibre/image-actions.yml new file mode 100644 index 000000000..43e750702 --- /dev/null +++ b/.github/calibre/image-actions.yml @@ -0,0 +1,6 @@ +jpeg: + quality: 80 +png: + quality: 80 +ignorePaths: + - "resources/**" \ No newline at end of file diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml new file mode 100644 index 000000000..85ae0274a --- /dev/null +++ b/.github/workflows/calibreapp-image-actions.yml @@ -0,0 +1,12 @@ +name: Compress images +on: pull_request +jobs: + build: + name: calibreapp/image-actions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: calibreapp/image-actions + uses: docker://calibreapp/github-image-actions + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file