From 031c10f19a44f4e82ae38a310e71fb7388d60ab0 Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Tue, 29 Sep 2020 16:03:24 +0200 Subject: [PATCH] Fix publish-on-sdkman.sh and how it is called in the GH workflow --- .github/workflows/verify.yaml | 2 ++ RELEASING.adoc | 6 +++--- build/publish-on-sdkman.sh | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index e3665e34..1fc0a3ff 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -218,5 +218,7 @@ jobs: asset_name: mvnd-${{ env.VERSION }}-windows-amd64.zip asset_content_type: application/zip + - uses: actions/checkout@v1 + - name: Publish on sdkman.io run: ./build/publish-on-sdkman.sh "${{ env.VERSION }}" diff --git a/RELEASING.adoc b/RELEASING.adoc index 77bc3835..432a38a1 100644 --- a/RELEASING.adoc +++ b/RELEASING.adoc @@ -6,6 +6,6 @@ ---- * Re-run the https://github.com/mvndaemon/mvnd/actions?query=workflow%3A%22Mvnd+Changelog%22[Changelog update] manually. -* When it terminates, find the anchor of the released tag in the - https://github.com/mvndaemon/mvnd/blob/master/CHANGELOG.md[Changelog] by clicking the chain link on the left. -* Wait for the release job to finish, paste the link to changelog to the release. \ No newline at end of file +* When it terminates, find the section about the current release + in the https://raw.githubusercontent.com/mvndaemon/mvnd/master/CHANGELOG.md[Changelog] and copy its MarkDown source + to the respective release page. The release page will appear once the release build is finished. diff --git a/build/publish-on-sdkman.sh b/build/publish-on-sdkman.sh index 25649028..5d94cd4c 100755 --- a/build/publish-on-sdkman.sh +++ b/build/publish-on-sdkman.sh @@ -83,8 +83,8 @@ RESPONSE="$(curl -s -X POST \ -H "Consumer-Token: ${SDKMAN_CONSUMER_TOKEN}" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ - -d '{"text": "mvnd '${VERSION}' released '${RELEASE_URL}'"}' \ - https://vendors.sdkman.io/announce/freeform)" + -d '{"candidate": "mvnd", "version": "'${VERSION}'", "url": "'${RELEASE_URL}'"}' \ + https://vendors.sdkman.io/announce/struct)" node -pe " var json = JSON.parse(process.argv[1]);