Skip to content

Commit

Permalink
Added PHONY targets
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Jul 26, 2020
1 parent 0a17a7e commit 35d79c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 35d79c7

Please sign in to comment.