CI: Upload package info with md5 checksum

This commit is contained in:
Alexander Zobnin
2021-03-09 17:25:39 +03:00
parent 1fe640196b
commit e77990f941

View File

@@ -85,6 +85,11 @@ async function main() {
`alexanderzobnin-zabbix-app-${releaseVersion}.zip`, `alexanderzobnin-zabbix-app-${releaseVersion}.zip`,
`https://uploads.github.com/repos/${GRAFANA_ZABBIX_OWNER}/${GRAFANA_ZABBIX_REPO}/releases/${releaseId}/assets` `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) { } catch (reason) {
console.error(reason.data || reason.response || reason); console.error(reason.data || reason.response || reason);
// Rethrow the error so that we can trigger a non-zero exit code to circle-ci // Rethrow the error so that we can trigger a non-zero exit code to circle-ci