funquail/Taskfile.yml
Shin'ya Minazuki 09f892ebd7 Remake the CI machine
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-01-29 21:40:55 -03:00

39 lines
905 B
YAML

# https://taskfile.dev
version: '3'
vars:
BUILD_DIR: build
TASK_LIST: task -l
VERSION:
sh:
- git describe --tags
tasks:
default:
cmds:
- echo "See all available tasks with {{.TASK_LIST}}"
silent: true
install:
desc: Install required dependencies
cmds:
- poetry install
changelog:
desc: Generate a changelog
cmds:
- poetry run towncrier
dist:
desc: Build tarballs for backend and frontend
cmds:
- task: dist-be
- task: dist-fe
dist-be:
internal: true
cmds:
- rm -rf {{.BUILD_DIR}}
- mkdir -p {{.BUILD_DIR}}
- tar czvf {{.BUILD_DIR}}/funquail-be-{{.VERSION}}.tar.gz --owner prometheus --group prometheus --exclude-vcs api/
dist-fe:
internal: true
cmds:
- tar czvf {{.BUILD_DIR}}/funquail-fe-{{.VERSION}}.tar.gz --owner prometheus --group prometheus --exclude-vcs front/dist