summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Nadeau <nicholas.nadeau@gmail.com>2020-07-26 15:01:01 +0200
committerNicholas Nadeau <nicholas.nadeau@gmail.com>2020-07-26 15:01:01 +0200
commit35d79c7215a6332311e3ab8bf182f7888fa02952 (patch)
tree6f4509824639936a0f6cf26e389c1ff7a4edf497 /Makefile
parentMerge pull request #314 from Strajk/secret-file-docs (diff)
downloadforgejo-act-35d79c7215a6332311e3ab8bf182f7888fa02952.tar.xz
forgejo-act-35d79c7215a6332311e3ab8bf182f7888fa02952.zip
Added PHONY targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 46c311d..f18a5de 100644
--- a/Makefile
+++ b/Makefile
@@ -9,21 +9,26 @@ NEW_VERSION ?= $(MAJOR_VERSION).$(MINOR_VERSION).$(shell echo $$(( $(PATCH_VERSI
ACT ?= go run main.go
export GITHUB_TOKEN = $(shell cat ~/.config/github/token)
+.PHONY: build
build:
go build -ldflags "-X main.version=$(VERSION)" -o dist/local/act main.go
+.PHONY: test
test:
$(ACT)
+.PHONY: install
install: build
@cp dist/local/act $(PREFIX)/bin/act
@chmod 755 $(PREFIX)/bin/act
@act --version
+.PHONY: installer
installer:
@GO111MODULE=off go get github.com/goreleaser/godownloader
godownloader -r nektos/act -o install.sh
+.PHONY: promote
promote:
@git fetch --tags
@echo "VERSION:$(VERSION) IS_SNAPSHOT:$(IS_SNAPSHOT) NEW_VERSION:$(NEW_VERSION)"