From 98c301dd8e122945de682ddacc9a61b86da21158 Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Tue, 23 Nov 2021 21:54:17 +0330 Subject: [PATCH] modified gorelease makefile command --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 808d3ffb4..1d597f705 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ Char /SkywireInstaller*.pkg *.dmg /scripts/mac_installer/icon.iconset/ +releaseChangelog.md diff --git a/Makefile b/Makefile index bfbefde0f..8c73e42a8 100644 --- a/Makefile +++ b/Makefile @@ -149,7 +149,10 @@ build-deploy: ## Build for deployment Docker images ${OPTS} go build ${BUILD_OPTS_DEPLOY} -o /release/apps/skysocks-client ./cmd/apps/skysocks-client github-release: - goreleaser --rm-dist + $(eval GITHUB_TAG=$(shell git describe --abbrev=0 --tags | cut -c 2-)) + sed '/^## ${GITHUB_TAG}$$/,/^## .*/!d;//d;/^$$/d' ./CHANGELOG.md > releaseChangelog.md + goreleaser --rm-dist --release-notes releaseChangelog.md + build-docker: ## Build docker image ./ci_scripts/docker-push.sh -t ${BRANCH} -b