From 2f15316717e65b828762137bd85140d0a4b46137 Mon Sep 17 00:00:00 2001 From: Marcelo Salloum Date: Tue, 9 Aug 2022 16:49:56 -0700 Subject: [PATCH 1/3] Update jar upload to use github-release instead of ghr. --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cc10235c8..600ee3b72 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,14 +19,18 @@ jobs: - libs/stellar-sdk.jar deploy: docker: - - image: cibuilds/github:0.13 + - image: cimg/go:1.17 steps: - attach_workspace: at: ./build - run: - name: "Publish Release on GitHub" + name: "Install github.com/github-release/github-release" command: | - ghr -replace -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./build/libs + go get github.com/github-release/github-release + - run: + name: "Upload JAR to GitHub Release" + command: | + github-release upload -s ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -t ${CIRCLE_TAG} -f ./build/libs/stellar-sdk.jar -n java-stellar-sdk.jar after_deploy: docker: From eab62aec7bda1b2fe1cd06fa8fa180f2715c23c6 Mon Sep 17 00:00:00 2001 From: Marcelo Salloum Date: Tue, 9 Aug 2022 16:57:20 -0700 Subject: [PATCH 2/3] Update version and changelog. --- CHANGELOG.md | 4 ++++ build.gradle | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f86f13c57..9d1fd3d19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ As this project is pre 1.0, breaking changes may happen for minor version bumps. ## Pending +## 0.37.2 + +* Fix the deployment CI that uploads the jar to the GitHub release [2]. ([#453](https://github.com/stellar/java-stellar-sdk/pull/453)) + ## 0.37.1 * Fix the deployment CI that uploads the jar to the GitHub release. ([#452](https://github.com/stellar/java-stellar-sdk/pull/452)) diff --git a/build.gradle b/build.gradle index b82d05116..2618e4f1f 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ plugins { } sourceCompatibility = JavaVersion.VERSION_1_8.toString() -version = '0.37.1' +version = '0.37.2' group = 'stellar' jar.enabled = false From d3a8779b4f990a9f66121b06e6625b86b0d782cd Mon Sep 17 00:00:00 2001 From: Marcelo Salloum Date: Wed, 10 Aug 2022 15:36:19 -0700 Subject: [PATCH 3/3] Use specific version of `github-release`. --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 600ee3b72..ac5ed180b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,9 +24,9 @@ jobs: - attach_workspace: at: ./build - run: - name: "Install github.com/github-release/github-release" + name: "Install github.com/github-release/github-release v0.10.0" command: | - go get github.com/github-release/github-release + go get github.com/github-release/github-release@v0.10.0 - run: name: "Upload JAR to GitHub Release" command: |