Files
blog/.gitea/workflows/build.yaml
Adrien Beaudouin e68313b5d4
All checks were successful
/ build (push) Successful in 1m18s
try gitea action
2024-07-30 19:33:52 +02:00

23 lines
537 B
YAML

on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_CACHEDIR: /tmp/hugo_cache
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: peaceiris/actions-hugo@v3
with:
extended: true
- uses: actions/cache@v4
with:
path: ${{ env.HUGO_CACHEDIR }}
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build test
run: hugo --minify