From 7ce9b3c48d420e5a324d70d81e84fab5ac6b00af Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Tue, 2 May 2023 12:10:22 -0500 Subject: [PATCH] Attempt to fix plugin release to github (#43) During the last release, we still encountered an issue in the plugin release step. Ensure we set the releaseVersion property when running the gradle build. --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a836f53..0f34e6aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,9 +51,11 @@ jobs: uses: gradle/wrapper-validation-action@v1 - name: sha256 run: | - make buildplugin tag=$(git describe --tags --abbrev=0 --exact-match) release_version="${tag:1}" + echo "release_version=${release_version}" >> "$GITHUB_ENV" + export ORG_GRADLE_PROJECT_releaseVersion="${release_version}" + make buildplugin sha256sum ./protoc-gen-connect-kotlin/build/libs/protoc-gen-connect-kotlin-${release_version}.jar >> sha256.txt - name: Publish GitHub artifacts uses: softprops/action-gh-release@v1