Skip to content

Commit

Permalink
Fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fefas committed Jan 15, 2023
1 parent 6defcee commit 7e1d734
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#MAKEFLAGS += --silent

php ?= 8.2.0
version = $(shell git rev-parse --short HEAD)
revision = dev-${version}-php${php}
Expand Down Expand Up @@ -28,7 +26,7 @@ composer/%:
tests/%:
@make docker/run cmd='make ${@}'

publish: remote = https://github.com/bauhausphp/${package}.git
publish: remote = git@github.com:bauhausphp/${package}.git
publish: branch = $(shell git rev-parse --abbrev-ref HEAD)
publish: commit = Ref bauhausphp/bauhaus@${version}
publish: author-name = $(shell git --no-pager show -s --format='%an' HEAD)
Expand All @@ -42,7 +40,7 @@ publish:
git -C ${workdir} config user.name "${author-name}"
git -C ${workdir} config user.email ${author-email}
git -C ${workdir} add .
git -C ${workdir} commit --message "${commit}" && git -C ${workdir} push -u origin HEAD:${branch} || exit 0
git -C ${workdir} commit --message "${commit}" && git -C ${workdir} push -u origin HEAD:${branch}

#
# Docker
Expand Down

0 comments on commit 7e1d734

Please sign in to comment.