Skip to content

Commit 07717ae

Browse files
committed
release 5.0.2
Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com>
1 parent e2048ce commit 07717ae

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
release:
88
runs-on: ubuntu-latest
9+
outputs:
10+
version: ${{ steps.release_name.outputs.version }}
911
env:
1012
JRELEASER_MAVENCENTRAL_CENTRAL_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_CENTRAL_USERNAME }}
1113
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
@@ -41,9 +43,13 @@ jobs:
4143
run: chmod +x gradlew
4244
- name: Extract release version from branch
4345
id: release_name
46+
shell: bash
4447
run: |
45-
BRANCH="${GITHUB_REF##*/}"
46-
echo "version=$BRANCH" >> "$GITHUB_OUTPUT"
48+
ref="${GITHUB_REF_NAME#release/}"
49+
version="${ref#v}"
50+
echo "version=$version" >> "$GITHUB_OUTPUT"
51+
echo "Release version: $version"
52+
4753
- name: Fail if version is a SNAPSHOT
4854
if: endsWith(steps.release_name.outputs.version, '-SNAPSHOT')
4955
run: |
@@ -70,5 +76,18 @@ jobs:
7076
java-version: 21
7177
- name: Publish Javadocs (gh-pages)
7278
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
7480
run: ./gradlew core:gitPublishPush
81+
git-release:
82+
needs: release
83+
runs-on: ubuntu-latest
84+
steps:
85+
- uses: actions/checkout@v4
86+
- name: Github Release
87+
uses: marvinpinto/action-automatic-releases@latest
88+
with:
89+
repo_token: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
90+
automatic_release_tag: v${{ needs.release.outputs.version }}
91+
prerelease: false
92+
files: |
93+
web3j-unit-${{ needs.release.outputs.version }}.*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ You can find an example using docker-compose [here](https://github.com/web3j/web
2323
maven { url "https://dl.cloudsmith.io/public/consensys/quorum-mainnet-launcher/maven/" }
2424
}
2525
26-
implementation "org.web3j:core:4.14.0"
27-
testCompile "org.web3j:web3j-unit:4.14.0"
26+
implementation "org.web3j:core:5.0.2"
27+
testCompile "org.web3j:web3j-unit:5.0.2"
2828
```
2929

3030
2. Create a new test with the `@EVMTest` annotation. An embedded EVM is used by default. To use Geth or Besu pass the node type into the annotation: `@EVMTest(NodeType.GETH)` or `@EVMTest(NodeType.BESU)`

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ kotlin.code.style=official
22
group=org.web3j
33
version=5.0.2
44
org.gradle.caching=true
5-
org.gradle.configuration-cache=true
5+
org.gradle.configuration-cache=false
66
org.gradle.configuration-cache.problems=warn

0 commit comments

Comments
 (0)