Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/sf-draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Draft release

on:
pull_request:
branches:
- "release/*"
paths:
- "CHANGELOG.md"

permissions:
contents: write
pull-requests: write

concurrency:
group: draft-release-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
draft-release:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Detect release PR
id: detect
uses: streamingfast/actions/sfreleaser/detect@v1

- name: Prepare release
if: steps.detect.outputs.is_release_pr
uses: streamingfast/actions/sfreleaser/prepare@v1
with:
version: ${{ steps.detect.outputs.version }}
42 changes: 42 additions & 0 deletions .github/workflows/sf-publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish release

on:
pull_request:
types:
- closed
branches:
- "release/*"
paths:
- "CHANGELOG.md"

permissions:
actions: write
contents: write

concurrency:
group: publish-release-${{ github.event.pull_request.number }}
cancel-in-progress: false

jobs:
publish:
if: github.event.pull_request.merged && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: 0

- name: Detect release PR
id: detect
uses: streamingfast/actions/sfreleaser/detect@v1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok nice, does it share the sfreleaser installation? We still have a way to override right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah detect installs it once on PATH and prepare/publish reuse it in the same job
We can override with version: on detect (pinned to v0.17.1-rc.9 here until v0.18.0 is out, then it defaults to latest)

with:
before: ${{ github.event.pull_request.merge_commit_sha }}^1

- name: Publish release
if: steps.detect.outputs.is_release_pr
uses: streamingfast/actions/sfreleaser/publish@v1
with:
version: ${{ steps.detect.outputs.version }}
build-workflow: sf-release.yml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so we need to kick in still the Docker build

49 changes: 0 additions & 49 deletions .github/workflows/sf-release-preview.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/sf-release-tag.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/sf-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,9 @@ jobs:
# silences the buildx warning.
docker cp $(docker create --platform=linux/amd64 ${{ steps.image.outputs.ID }}):/usr/local/bin/reth ./reth_linux_amd64

- name: Extract Changelog
id: changelog
run: |
curl -L https://github.com/streamingfast/sfreleaser/releases/download/v0.12.1/sfreleaser_linux_x86_64.tar.gz | tar -xz
chmod +x sfreleaser

./sfreleaser changelog extract-section \
github://token:${{ github.token }}@${{ github.repository }}/$GITHUB_SHA/CHANGELOG.md \
--github-output="changelog:$GITHUB_OUTPUT"

- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') || contains(github.ref, 'alpha') }}
files: |
./reth_linux_amd64
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# will have compiled files and executables
./debug/
target/
/build/

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
2 changes: 1 addition & 1 deletion .sfreleaser
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
global:
language: rust
variant: library
variant: application
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This changelog covers Firehose-specific changes only. For upstream reth changes,

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## reth-v2.9.0-fh3.1-not-a-real-version-alpha.2

Tests the release made by sfreleaser, no Firehose changes.

## reth-v2.11.0-fh3.1

### Changed
Expand Down
Loading