Semaphore/Taskfile_windows.yml
Thomas Boerger 67954b95aa
feat: replace packr and add basic cache headers
Since packr have been deprecated in favor of go:embed for quite some
time now I have replaced it with plain go:embed functionality which
makes it more future proof.

The only downside is that go:embed can use relativ paths only, that's
why I have moved the web/dist folder into api/public.

Besides that I have refactored the static asset handling which includes
basic last modification and cache control headers to improve the cache
cache behavior for static assets.
2024-03-01 15:52:30 +01:00

10 lines
201 B
YAML

version: '2'
tasks:
compile:be:
cmds:
- go run util/version_gen/generator.go 1
build:local:
dir: cli
cmds:
- go build -o ../bin/semaphore{{ if eq OS "windows" }}.exe{{ end }}