Files
blog/.gitea/workflows/build.yaml
Adrien Beaudouin 530cf8bac7
All checks were successful
/ build (push) Successful in 1m17s
try gitea action
2024-07-30 19:32:13 +02:00

24 lines
567 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
- name: Cache Resources
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