This commit is contained in:
admju
2024-09-13 12:49:49 +00:00
parent ebd76fea19
commit aded3f3b40
10 changed files with 351 additions and 3 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
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})