Merge branch 'main' into gradleDaemonDisconnect #2
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
name: snapshot artifacts | |
on: | |
workflow_dispatch: | |
push: | |
-branches: | |
- main | |
jobs: | |
artifacts: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: setup gradle | |
uses: gradle/actions/setup-gradle@9e899d11ad247ec76be7a60bc1cf9d3abbb9e7f1 | |
- name: assemble release | |
run: | |
./gradlew assemble -Dorg.gradle.parallel=true -Dorg.gradle.caching=true | |
- name: upload tarball | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | |
with: | |
path: 'build/distributions/besu*.tar.gz' | |
name: besu-${{ github.ref_name }}.tar.gz | |
compression-level: 0 | |
- name: hashes | |
id: hashes | |
run: | | |
cd build/distributions | |
echo "zipSha=$(shasum -a 256 besu*.zip)" >> $GITHUB_OUTPUT | |
echo "tarSha=$(shasum -a 256 besu*.tar.gz)" >> $GITHUB_OUTPUT | |
- name: upload zipfile | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | |
with: | |
path: 'build/distributions/besu*.zip' | |
name: besu-${{ github.ref_name }}.zip | |
compression-level: 0 | |
- name: Upload Release assets | |
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 | |
with: | |
prerelease: true | |
name: develop | |
tag_name: develop | |
fail_on_unmatched_files: true | |
append_body: true | |
files: | | |
build/distributions/besu*.tar.gz | |
build/distributions/besu*.zip | |
body: | | |
${{steps.hashes.outputs.tarSha}} | |
${{steps.hashes.outputs.zipSha}} |