test.yaml 633 B

1234567891011121314151617181920212223242526272829
  1. name: Test example site
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. types: [opened, synchronize]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v4
  13. with:
  14. persist-credentials: false
  15. - name: Install hugo
  16. run: |
  17. cd /tmp/
  18. wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.122.0/hugo_0.122.0_linux-amd64.deb
  19. sudo apt-get install -y ./hugo.deb
  20. - name: Build
  21. run: |
  22. mkdir exampleSite/themes
  23. ln -sT "$(pwd)" exampleSite/themes/no-js-hugo-theme
  24. cd exampleSite && hugo