-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/129-enable-auto-deposit-erc20-bridge-ui
- Loading branch information
Showing
6 changed files
with
158 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Github Release for Besu Plugins | ||
on: | ||
workflow_call: | ||
inputs: | ||
pluginName: | ||
required: true | ||
type: string | ||
description: 'plugin name used for the tag name, e.g staterecovery' | ||
workspaceModulePath: | ||
required: true | ||
type: string | ||
description: 'Path to plugin to release, e.g state-recovery/besu-plugin' | ||
version: | ||
required: true | ||
type: string | ||
description: 'Release semantic version: e.g "1.0.0"' | ||
workflow_dispatch: | ||
inputs: | ||
pluginName: | ||
required: true | ||
type: string | ||
description: 'plugin name used for the tag name, e.g staterecovery' | ||
workspaceModulePath: | ||
required: true | ||
type: string | ||
description: 'Path to plugin to release, e.g state-recovery/besu-plugin' | ||
version: | ||
required: true | ||
type: string | ||
description: 'Release semantic version: e.g "1.0.0"' | ||
|
||
jobs: | ||
release: | ||
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-med | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
|
||
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies. | ||
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Clean | ||
# ./gradlew clean is necessary because the build is cached | ||
# and cause issues with JReleaser | ||
run: ./gradlew clean | ||
|
||
- name: Build | ||
run: | | ||
GRAGLE_PATH=:$(echo "${{inputs.workspaceModulePath}}" | sed 's/\//:/g') | ||
echo $GRAGLE_PATH | ||
./gradlew $GRAGLE_PATH:shadowJar -Pversion=v${{inputs.version}} | ||
ls -lh ${{inputs.workspaceModulePath}}/build/libs | ||
- name: Release to GitHub | ||
uses: jreleaser/release-action@v2 | ||
with: | ||
arguments: full-release --git-root-search --basedir=${{ github.workspace }}/${{inputs.workspaceModulePath}} -P=version=v${{inputs.version}} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN_RELEASE_ACCESS }} | ||
JRELEASER_TAG_NAME: ${{inputs.pluginName}}-v${{inputs.version}} | ||
JRELEASER_PROJECT_VERSION: ${{inputs.version}} | ||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JRELEASER_GITHUB_USERNAME: ${{ github.actor }} | ||
JRELEASER_GITHUB_EMAIL: ${{ github.actor }}@users.noreply.github.com | ||
|
||
# Persist logs | ||
- name: JReleaser release output | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jreleaser-release | ||
path: | | ||
build/jreleaser/trace.log | ||
build/jreleaser/output.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
project: | ||
name: staterecovery | ||
description: Linea State Recovery Besu Plugin | ||
longDescription: Besu Plugin to allow Linea rollup state recovery from L1 Blob data | ||
links: | ||
homepage: https://github.com/Consensys/linea-monorepo | ||
authors: | ||
- Linea automations | ||
license: APACHE-2.0 | ||
inceptionYear: '2025' | ||
stereotype: NONE | ||
java: | ||
version: '21' | ||
groupId: build.linea | ||
artifactId: linea-staterecovery-besu-plugin | ||
|
||
release: | ||
github: | ||
overwrite: true | ||
releaseName: 'State Recovery {{version}}' | ||
changelog: | ||
enabled: false | ||
commitAuthor: | ||
name: 'Linea automations' | ||
email: 'linea-automations@consensys.net' | ||
|
||
distributions: | ||
staterecovery: | ||
type: SINGLE_JAR | ||
artifacts: | ||
- path: 'build/libs/linea-staterecovery-besu-plugin-{{version}}.jar' |