oc-version/Makefile

18 lines
431 B
Makefile
Raw Permalink Normal View History

2024-09-13 14:49:49 +02:00
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})