Skip to content

update versions to support pectra #25

update versions to support pectra

update versions to support pectra #25

Workflow file for this run

name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
environment: publish
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java and Gradle
id: setup-java-gradle
uses: ConsenSys/github-actions/java-setup-gradle@main
with:
DISTRIBUTION: 'adopt'
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build with Gradle
run: ./gradlew build -PreleaseVersion=${{ steps.get_version.outputs.VERSION }}
- name: Test with Gradle
run: ./gradlew test
- name: Create release notes
run: |
echo "## Release ${{ github.ref_name }}" > output.md
echo "./build/libs/besu-fleet-plugin-${{ steps.get_version.outputs.VERSION }}.jar" >> output.md
echo "SHA256: $(sha256sum ./build/libs/besu-fleet-plugin-${{ steps.get_version.outputs.VERSION }}.jar | awk '{ print $1 }' )" >> output.md
echo "" >> output.md
- name: Upload Release Asset
id: release_publish
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.ref_name }}
body_path: output.md
generate_release_notes: true
fail_on_unmatched_files: true
files: ./build/libs/besu-fleet-plugin-${{ steps.get_version.outputs.VERSION }}.jar
- name: Publish to artifactory
if: "!startsWith(github.ref, 'refs/tags/')"
uses: ./.github/actions/publish-to-artifactory
with:
publish-version: ${{ steps.get_version.outputs.VERSION }}