main.yml 592 B

1234567891011121314151617181920212223242526
  1. name: Build with Hugo
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. hugo-version:
  9. - 'latest'
  10. - '0.158.0'
  11. steps:
  12. - uses: actions/checkout@v4
  13. with:
  14. submodules: true # Fetch Hugo themes (true OR recursive)
  15. fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
  16. - name: Setup Hugo
  17. uses: peaceiris/actions-hugo@v3
  18. with:
  19. hugo-version: ${{ matrix.hugo-version }}
  20. extended: true
  21. - name: Run Hugo
  22. run: hugo --minify