build-test-site.yaml 612 B

12345678910111213141516171819202122232425262728293031
  1. name: build test site
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - 'wowchemy/**'
  8. pull_request:
  9. branches:
  10. - master
  11. paths:
  12. - 'wowchemy/**'
  13. jobs:
  14. deploy:
  15. runs-on: ubuntu-18.04
  16. steps:
  17. - uses: actions/checkout@v2
  18. with:
  19. submodules: true # Fetch any Git submodules (true OR recursive)
  20. fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
  21. - name: Setup Hugo
  22. uses: peaceiris/actions-hugo@v2
  23. with:
  24. hugo-version: 'latest'
  25. extended: true
  26. - name: Build
  27. run: hugo --minify