From 98283cfd0ac29a0edc5fcbf99dc8575f59fa98be Mon Sep 17 00:00:00 2001 From: Daniel Perez Date: Sun, 4 Aug 2024 17:16:11 +0100 Subject: [PATCH] Release v0.1.2 --- .github/workflows/release.yml | 21 +++++++++++++++++++++ CHANGELOG.md | 4 ++-- scripts/download-binaries.sh | 15 +++++++++++++++ scripts/generate-release-body.sh | 9 +++++++++ install.sh => scripts/install.sh | 0 5 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100755 scripts/download-binaries.sh create mode 100755 scripts/generate-release-body.sh rename install.sh => scripts/install.sh (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1e9be5d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Create release + +on: + push: + tags: + - "v*.*.*" + +jobs: + deploy: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - name: Download binaries + run: bash ./scripts/download-binaries.sh ./tmp + - name: Create release body + run: bash ./scripts/generate-release-body.sh ./tmp + - name: Create release + uses: softprops/action-gh-release@v1 + with: + files: ./tmp/eclair-* + body_path: ./tmp/release-body.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 426b932..d0499d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Not released +## v0.1.2 (2024-08-04) ### Features @@ -22,7 +22,7 @@ * Fix parsing of fix bytes with less than 32 bytes (e.g. bytes4) * Fix display of functions that don't check argument types -## 0.1.1 (2024-07-30) +## v0.1.1 (2024-07-30) ### Features diff --git a/scripts/download-binaries.sh b/scripts/download-binaries.sh new file mode 100755 index 0000000..1f04772 --- /dev/null +++ b/scripts/download-binaries.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -eo pipefail + +TMP_DIR=${1:-tmp} + +NIGHTLY_BASE_URL="https://eclair-releases.s3.eu-west-2.amazonaws.com/%s/eclair" + +mkdir -p "$TMP_DIR" + +versions=(linux-arm64 macos-amd64 macos-arm64) + +for version in "${versions[@]}"; do + wget "$(printf "$NIGHTLY_BASE_URL" "$version")" -O "$TMP_DIR/eclair-$version" +done diff --git a/scripts/generate-release-body.sh b/scripts/generate-release-body.sh new file mode 100755 index 0000000..ddb1d2d --- /dev/null +++ b/scripts/generate-release-body.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -eo pipefail + +TMP_DIR=${1:-tmp} + +mkdir -p "$TMP_DIR" + +awk '/^## v/{ if (flag) { exit 0 } flag = 1 } flag' CHANGELOG.md | sed -e '$d' -e '1,2d' > $TMP_DIR/release-body.md diff --git a/install.sh b/scripts/install.sh similarity index 100% rename from install.sh rename to scripts/install.sh