File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed
Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 66jobs :
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 }}
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 : |
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 }}.*
Original file line number Diff line number Diff 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
30302 . 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) `
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ kotlin.code.style=official
22group =org.web3j
33version =5.0.2
44org.gradle.caching =true
5- org.gradle.configuration-cache =true
5+ org.gradle.configuration-cache =false
66org.gradle.configuration-cache.problems =warn
You can’t perform that action at this time.
0 commit comments