diff --git a/packages/notify/lib/utils.mjs b/packages/notify/lib/utils.mjs index 4094be9..7154fa1 100644 --- a/packages/notify/lib/utils.mjs +++ b/packages/notify/lib/utils.mjs @@ -23,6 +23,7 @@ const { JOB_ID, npm_package_version = '未知', PROJECT_WEB_URL, + ARTIFACT_URL, } = process.env; function getVersion({ isLatest, version, rc }) { @@ -397,6 +398,27 @@ export async function createContent({ }, ], }, + ...(ARTIFACT_URL + ? [ + { + type: 'heading', + depth: 3, + children: [ + { + type: 'text', + value: '部署资源包:', + }, + ], + }, + { + type: 'code', + lang: 'bash', + value: [`curl ${ARTIFACT_URL}`, `wget ${ARTIFACT_URL}`].join( + '\n\n', + ), + }, + ] + : []), { type: 'list', spread: false, diff --git a/packages/notify/package.json b/packages/notify/package.json index 615f9a1..b46ffd7 100644 --- a/packages/notify/package.json +++ b/packages/notify/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/notify", - "version": "0.3.9", + "version": "0.3.11", "description": "Send releases notifications", "license": "MIT", "author": {