Fix publish-on-sdkman.sh and how it is called in the GH workflow

This commit is contained in:
Peter Palaga
2020-09-29 16:03:24 +02:00
parent 1c2642a795
commit 031c10f19a
3 changed files with 7 additions and 5 deletions

View File

@@ -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 }}"

View File

@@ -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.
* 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.

View File

@@ -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]);