-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 860 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: hi
hi:
@echo zup
.PHONY: test-backend
test-backend:
@go test -v ./backend
.PHONY: test-frontend-watch
test-frontend-watch:
@cd frontend && yarn test
.PHONY: test-frontend
test-frontend:
@cd frontend && yarn test --run
.PHONY: test
test: test-backend test-frontend
.PHONY: build-windows
build-windows:
@wails build -platform windows/amd64
.PHONY: release
release_version := v-$(shell git rev-parse --short HEAD)
owner := cabaalexander
repo := save-manager
release:
@curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GIT_REPO_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$(owner)/$(repo)/releases \
-d '{"tag_name":"$(release_version)","target_commitish":"main","name":"$(release_version)","draft":false,"prerelease":false,"generate_release_notes":true}'