Skip to content

Commit

Permalink
Set up workflow to optimize svgs on push (#433)
Browse files Browse the repository at this point in the history
* Add optimize action

* Change author

* Change email
  • Loading branch information
colebemis authored Jun 1, 2020
1 parent 00071be commit 12fb159
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/optimize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: push
name: Optimize SVGs
jobs:
optimize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '10.x'
- run: npm install
- run: npm run svgo
- uses: EndBug/add-and-commit@v4
with:
add: 'icons'
message: 'Optimize SVGs'
author_email: [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 12fb159

Please sign in to comment.