ytdl-web/Taskfile.yml

15 lines
335 B
YAML

version: "3"
vars:
OUT: ./out/ytdl-web
VERSION: 1.0.0
VERSION_PKG: go.fifitido.net/ytdl-web/version
BUILD:
sh: git rev-parse --short HEAD
tasks:
deps: go mod download
tidy: go mod tidy
build: go build -ldflags="-X {{.VERSION_PKG}}.Version={{.VERSION}} -X {{.VERSION_PKG}}.Build={{.BUILD}}" -o {{.OUT}} .
dev: air