diff --git a/.gitignore b/.gitignore index 808d3ffb46..1d597f705b 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 bfbefde0f2..8c73e42a81 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