funquail/Taskfile.yml

39 lines
905 B
YAML
Raw Normal View History

# 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