From 668779648d53e19e9416582e23a05d53f9862aea Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Mon, 8 Jan 2024 11:58:08 +0100 Subject: [PATCH] Update goreleaser --- .goreleaser.yaml | 8 ++++++ CHANGELOG.md | 3 -- Makefile | 7 +---- suave/scripts/parse-changelog.sh | 47 -------------------------------- 4 files changed, 9 insertions(+), 56 deletions(-) delete mode 100644 CHANGELOG.md delete mode 100755 suave/scripts/parse-changelog.sh diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 58d498d13..9da62fd0e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -95,3 +95,11 @@ dockers: checksum: name_template: "checksums.txt" + +release: + draft: true + header: | + # 🚀 Features + # 🎄 Enhancements + # 🐞 Notable bug fixes + # 🎠 Community diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 65d59accb..000000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## v0.1.0 (Unreleased) - -Initial release of `suave-geth`. diff --git a/Makefile b/Makefile index 1a5cb7dcc..59c19ef0d 100644 --- a/Makefile +++ b/Makefile @@ -56,19 +56,14 @@ fmt-contracts: cd suave && forge fmt release: - # Generate the changelog for the release - ./suave/scripts/parse-changelog.sh $(TAG) > /tmp/changelog.md - - # Build and publish the release docker run \ --rm \ -e CGO_ENABLED=1 \ -e GITHUB_TOKEN="$(GITHUB_TOKEN)" \ - -v /tmp/changelog.md:/build/changelog.md \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $(HOME)/.docker/config.json:/root/.docker/config.json \ -v `pwd`:/go/src/$(PACKAGE_NAME) \ -v `pwd`/sysroot:/sysroot \ -w /go/src/$(PACKAGE_NAME) \ ghcr.io/goreleaser/goreleaser-cross:v1.19.5 \ - release --clean --release-notes /build/changelog.md + release --clean diff --git a/suave/scripts/parse-changelog.sh b/suave/scripts/parse-changelog.sh deleted file mode 100755 index 94f52bd1d..000000000 --- a/suave/scripts/parse-changelog.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# Define the version you want to extract -target_version=$1 - -if [ -z "$target_version" ]; then - echo "Target version is empty" - exit 1 -fi - -# Input changelog file -changelog_file="CHANGELOG.md" - -# Function to add entries to the markdown file -add_entry() { - echo -e "$1" -} - -# Flag to start processing when the target version is found -found_version=false -found_anything=false - -# Read the changelog file line by line -while IFS= read -r line; do - # Check if the line starts with the target version - if [[ $line == "## $target_version"* ]]; then - echo "## Changelog" - found_version=true - found_anything=true - continue - elif [[ $line == "## "* ]]; then - # We moved to another version, stop processing - found_version=false - fi - - # If we've found the target version, start processing entries - if [ "$found_version" = true ]; then - # Add the current entry to the markdown file - add_entry "$line" - fi -done < "$changelog_file" - -# If no changelog found, return an error -if [ "$found_anything" = false ]; then - echo "No changelog found for $target_version" - exit 1 -fi \ No newline at end of file