www.byjp.me/Taskfile.yml
JP Hastings-Spital 4b59699934 Simplify the deploy scripts
I'll be moving to deployment from my homelab soon (I hope), so this should simplify things.
2024-04-12 13:16:35 +01:00

36 lines
790 B
YAML

# https://taskfile.dev
version: '3'
# TODO: Handle commands in dotenv
# dotenv: ['.env']
env:
DOMAIN: https://www.byjp.me
HUGO_INDIEKIT_URL: https://indiekit.byjp.me{{.DOMAIN_SUFFIX}}
HUGO_LAST_UPDATE_TIME:
sh: git log -1 --format=%cI
HUGO_LAST_UPDATE_HASH:
sh: git log -1 --format=%h
tasks:
check-links:
cmds:
- lychee --cache --require-https --config lychee.toml .
dev:
env:
DOMAIN_SUFFIX: .test
cmds:
- hugo server --minify --printUnusedTemplates -D --baseURL "${DOMAIN}${DOMAIN_SUFFIX}" --appendPort=false
build:
cmds:
- hugo --cacheDir /tmp/hugo/cache --gc --minify --baseURL "${DOMAIN}"
- pagefind
import:
dir: tools/
cmds:
- go run ./import/omnivore ../
- go run ./import/webmentionio