oc-version/Makefile
2024-09-13 12:49:49 +00:00

18 lines
431 B
Makefile

ifndef OC_VERSION
$(error OC_VERSION is not set)
endif
PUBLISH_REPO := "na/oc-version"
PUBLISH_TOKEN := "61bcebe3a6ffa67ae88adeb49825d94d212889eb"
PUBLISH_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
.PHONY: publish
publish:
@echo Publication de : ${OC_VERSION}
@(cd publish && \
PUBLISH_REPO=${PUBLISH_REPO} \
PUBLISH_TOKEN=${PUBLISH_TOKEN} \
PUBLISH_BRANCH=${PUBLISH_BRANCH} \
go run main.go ${OC_VERSION})