9898 draft-release :
9999 name : ' Draft Github release'
100100 needs :
101- - deploy-bintray
101+ - deploy-cloudsmith
102102 - publish-docker
103103 runs-on : ubuntu-18.04
104104 steps :
@@ -108,8 +108,6 @@ jobs:
108108 id : release_notes
109109 run : |
110110 git fetch --depth=1 origin +refs/tags/*:refs/tags/*
111- package="${{ secrets.BINTRAY_PACKAGE }}"
112- repo="${package%/*}"
113111 file="generated-release-notes.md"
114112 current_version="${GITHUB_REF##*/}"
115113 last_version=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
@@ -119,13 +117,16 @@ jobs:
119117 curl -q -s -H "Accept: application/vnd.github.v3+json" \
120118 "https://api.github.com/search/issues?q=repo:ConsenSys/quorum+is:pr+is:merged+merged%3A>=$last_release_date+sort%3Aupdated-desc" | jq -r '"* " + (.items[]|.title + " #" + (.number|tostring))' \
121119 >> $file
122- # pulling file hashes from Bintray
120+ # pulling file hashes from Cloudsmith
123121 echo "" >> $file
124122 echo "| Filename | SHA256 Hash |" >> $file
125123 echo "|:---------|:------------|" >> $file
126- curl -q -s -u ${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_API_KEY}} "https://api.bintray.com/packages/$package/versions/$current_version/files" \
127- | jq '.[] | select(.name | endswith(".asc") | not) | "|[\(.name)](https://bintray.com/'"$repo"'/download_file?file_path=\(.path))|`\(.sha256)`|"' -r \
128- >> $file
124+ curl --request GET \
125+ --url "https://api.cloudsmith.io/v1/packages/consensys/go-quorum/?query=version:$current_version" \
126+ --header 'Accept: application/json' \
127+ --header 'X-Api-Key: ${{ secrets.CLOUDSMITH_API_KEY }}' \
128+ | jq '.[] | select(.name | endswith(".asc") | not) | "|[\(.name)](\(.cdn_url))|`\(.checksum_sha256)`|"' -r \
129+ >> $file
129130 content=$(cat $file)
130131 # escape newline
131132 content="${content//'%'/'%25'}"
@@ -149,7 +150,7 @@ jobs:
149150 name : ' Notify'
150151 needs :
151152 - build
152- - deploy-bintray
153+ - deploy-cloudsmith
153154 - publish-docker
154155 - draft-release
155156 runs-on : ubuntu-18.04
0 commit comments