Skip to content

Upgrade fast-isbn to v1.2.12 #126

Upgrade fast-isbn to v1.2.12

Upgrade fast-isbn to v1.2.12 #126

Workflow file for this run

name: Deploy Hugo site to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install jq
uses: dcarbone/[email protected]
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Ensure Hugo cache 'getresource' never evicts
run: test $(hugo config --format json | jq .caches.getresource.maxage) -eq -1
- name: Cache resources directory
uses: actions/cache@v4
with:
path: resources
key: ${{ runner.os }}-hugo-resources-directory-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-hugo-resources-directory
- name: Cache Hugo cache directory
uses: actions/cache@v4
with:
path: /tmp/hugo_cache_runner/
key: ${{ runner.os }}-hugo-cache-directory-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-hugo-cache-directory
- name: Build Hugo site
run: hugo --gc --minify --baseURL "https://van-tomas.de/"
- name: Install Pagefind
uses: baptiste0928/cargo-install@v3
with:
crate: pagefind
version: '^1.1' # You can specify any semver range
- name: Create fulltext search index
run: pagefind --site public
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public