Skip to content

Commit

Permalink
chore: fix make release
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft authored and fd0r committed Jun 30, 2023
1 parent 87382b6 commit 45a20ae
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -540,20 +540,22 @@ changelog: check_version_coherence
PROJECT_VER="$${PROJECT_VER[1]}" && \
poetry run python ./script/make_utils/changelog_helper.py > "CHANGELOG_$${PROJECT_VER}.md"

.PHONY: release_no_push # Create a new release without pushing the tag
release_no_push: check_version_coherence check_apidocs
.PHONY: release # Create a new release from the private repo
release: check_version_coherence check_apidocs
@PROJECT_VER=($$(poetry version)) && \
PROJECT_VER="$${PROJECT_VER[1]}" && \
TAG_NAME="v$${PROJECT_VER}" && \
git fetch --tags --force && \
git tag -s -a -m "$${TAG_NAME} release" "$${TAG_NAME}"

.PHONY: release # Create a new release from the private repo
release: release_no_push
git tag -s -a -m "$${TAG_NAME} release" "$${TAG_NAME}" && \
git push origin "refs/tags/$${TAG_NAME}"

.PHONY: release # Create a new release from the public repo
public_release: release_no_push
.PHONY: public_release # Create a new release from the public repo
public_release: check_version_coherence check_apidocs
@PROJECT_VER=($$(poetry version)) && \
PROJECT_VER="$${PROJECT_VER[1]}" && \
TAG_NAME="v$${PROJECT_VER}" && \
git fetch --tags --force && \
git tag -s -a -m "$${TAG_NAME} release" "$${TAG_NAME}" && \
git push public "refs/tags/$${TAG_NAME}"

.PHONY: show_scope # Show the accepted types and optional scopes (for git conventional commits)
Expand Down

0 comments on commit 45a20ae

Please sign in to comment.