Bump Hugo to 0.160.1 to match book theme minimum requirement (0.158.0+) #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'site/**' | |
| - 'scripts/make-docs/**' | |
| - 'src/**/Doc/**' | |
| - '.github/workflows/docs.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install pandoc and Hugo | |
| run: | | |
| curl -sLO https://github.com/jgm/pandoc/releases/download/3.6.4/pandoc-3.6.4-1-amd64.deb | |
| sudo dpkg -i pandoc-3.6.4-1-amd64.deb | |
| curl -sLO https://github.com/gohugoio/hugo/releases/download/v0.160.1/hugo_extended_0.160.1_linux-amd64.tar.gz | |
| tar -xzf hugo_extended_0.160.1_linux-amd64.tar.gz hugo | |
| sudo mv hugo /usr/local/bin/hugo | |
| - name: Convert LaTeX docs to Markdown | |
| run: scripts/make-docs/convert.sh | |
| - name: Build Hugo site | |
| run: hugo --minify | |
| working-directory: site | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site/public | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |