Skip to content

Commit f554014

Browse files
committed
Ensure releases can only occur on master
1 parent a3f13f3 commit f554014

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ endif
4848
ifndef GITHUB_USERNAME
4949
$(error GITHUB_USERNAME env var is not set)
5050
endif
51+
@if [ $(shell git branch --show-current) != "master" ]; then echo "Error: This command can only be run on the master branch"; exit 1; fi;
5152
echo $$GITHUB_PAT | docker login ghcr.io --username $$GITHUB_USERNAME --password-stdin
5253
VERSION=$(VERSION) $(COMPOSE_PUBLISH) build
5354
VERSION=$(VERSION) $(COMPOSE_PUBLISH) push difficalcy-osu difficalcy-taiko difficalcy-catch difficalcy-mania

0 commit comments

Comments
 (0)