diff --git a/packages/notify/lib/utils.mjs b/packages/notify/lib/utils.mjs index 4094be9..ccc9b73 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,30 @@ export async function createContent({ }, ], }, + ...(ARTIFACT_URL + ? [ + { + type: 'heading', + depth: 3, + children: [ + { + type: 'text', + value: '部署地址', + }, + ], + }, + { + type: 'code', + lang: 'bash', + value: `wget ${ARTIFACT_URL}`, + }, + { + type: 'code', + lang: 'bash', + value: `curl ${ARTIFACT_URL}`, + }, + ] + : []), { type: 'list', spread: false, diff --git a/packages/notify/package.json b/packages/notify/package.json index 615f9a1..e69bc05 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.10", "description": "Send releases notifications", "license": "MIT", "author": {