Skip to content

Commit

Permalink
Release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Aug 4, 2024
1 parent 81e72e1 commit dc0f058
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Not released
## v0.1.2 (2024-08-04)

### Features

Expand All @@ -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

Expand Down
15 changes: 15 additions & 0 deletions scripts/download-binaries.sh
Original file line number Diff line number Diff line change
@@ -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-amd64 macos-amd64 macos-arm64)

for version in "${versions[@]}"; do
wget "$(printf "$NIGHTLY_BASE_URL" "$version")" -O "$TMP_DIR/eclair-$version"
done
9 changes: 9 additions & 0 deletions scripts/generate-release-body.sh
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.

0 comments on commit dc0f058

Please sign in to comment.