build.yml 631 B

12345678910111213141516171819202122232425262728
  1. name: Run Build
  2. # Run action on pull request event
  3. on: [pull_request]
  4. jobs:
  5. build:
  6. runs-on: ubuntu-18.04
  7. steps:
  8. # checkout to the commit that has been pushed
  9. - uses: actions/checkout@v3.1.0
  10. with:
  11. submodules: true # Fetch Hugo themes (true OR recursive)
  12. fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
  13. # install Hugo
  14. - name: Setup Hugo
  15. uses: peaceiris/actions-hugo@v2.6.0
  16. with:
  17. hugo-version: 'latest'
  18. extended: true
  19. # build website
  20. - name: Create Config
  21. run: touch config.toml
  22. - name: Build
  23. run: hugo --minify