From e77990f9413bae4c7b5b9124c6154dec9d6af811 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 9 Mar 2021 17:25:39 +0300 Subject: [PATCH] CI: Upload package info with md5 checksum --- .circleci/github/publishRelease.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.circleci/github/publishRelease.js b/.circleci/github/publishRelease.js index 74db54348..ebcde9211 100644 --- a/.circleci/github/publishRelease.js +++ b/.circleci/github/publishRelease.js @@ -85,6 +85,11 @@ async function main() { `alexanderzobnin-zabbix-app-${releaseVersion}.zip`, `https://uploads.github.com/repos/${GRAFANA_ZABBIX_OWNER}/${GRAFANA_ZABBIX_REPO}/releases/${releaseId}/assets` ); + // Upload package info with md5 checksum + await publishAssets( + `info.json`, + `https://uploads.github.com/repos/${GRAFANA_ZABBIX_OWNER}/${GRAFANA_ZABBIX_REPO}/releases/${releaseId}/assets` + ); } catch (reason) { console.error(reason.data || reason.response || reason); // Rethrow the error so that we can trigger a non-zero exit code to circle-ci