build.yml 567 B

1234567891011121314151617181920212223
  1. name: Build project with Hugo
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. defaults:
  7. run:
  8. working-directory: ./exampleSite
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. submodules: true # Fetch Hugo themes (true OR recursive)
  13. fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
  14. - name: Setup Hugo
  15. uses: peaceiris/actions-hugo@v2
  16. with:
  17. hugo-version: 'latest'
  18. extended: true
  19. - name: Build
  20. run: |
  21. hugo --minify