Add GitHub Action to compress images automatically

This commit is contained in:
Franck Nijhof 2020-03-05 21:14:54 +01:00
parent 3bc07f8965
commit 84799d7fd9
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

18
.github/workflows/compress.yml vendored Normal file
View file

@ -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 }}