compress-assets.yaml 497 B

12345678910111213141516171819202122232425262728
  1. name: Compress assets
  2. on:
  3. push:
  4. branches:
  5. - v2
  6. pull_request:
  7. branches:
  8. - v2
  9. jobs:
  10. compress-assets:
  11. runs-on: docker
  12. container:
  13. image: node
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v2
  17. - name: Install Leanify
  18. run: |
  19. curl -L https://files.perennialte.ch/leanify -o leanify
  20. chmod +x ./leanify
  21. mv ./leanify /usr/local/bin
  22. - name: Compress assets
  23. run: leanify -p ./views/assets