mirror of
https://github.com/sudoxnym/brands.git
synced 2026-05-19 12:08:50 +00:00
Add GitHub Action to compress images automatically
This commit is contained in:
parent
3bc07f8965
commit
84799d7fd9
1 changed files with 18 additions and 0 deletions
18
.github/workflows/compress.yml
vendored
Normal file
18
.github/workflows/compress.yml
vendored
Normal 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 }}
|
||||
Loading…
Reference in a new issue