|
|
|
@ -19,6 +19,7 @@ const beautifyOutputUrl = mapWebpackUrlPrefix([
|
|
|
|
|
{ prefix: 'misc/.iconfont', replace: './ui/iconfont' },
|
|
|
|
|
]);
|
|
|
|
|
const smp = new SpeedMeasurePlugin();
|
|
|
|
|
const event = process.env.GITHUB_EVENT_PATH ? require(process.env.GITHUB_EVENT_PATH) : {};
|
|
|
|
|
|
|
|
|
|
export default function (env = {}) {
|
|
|
|
|
function esbuildLoader() {
|
|
|
|
@ -237,6 +238,12 @@ export default function (env = {}) {
|
|
|
|
|
project_token: process.env.PT_PROJECT_TOKEN,
|
|
|
|
|
upload: true,
|
|
|
|
|
fail_build: false,
|
|
|
|
|
branch: event.ref.replace('refs/heads/', ''),
|
|
|
|
|
author: event.head_commit.author.email,
|
|
|
|
|
message: event.head_commit.message,
|
|
|
|
|
commit: process.env.GITHUB_SHA,
|
|
|
|
|
committed_at: parseInt(+new Date(event.head_commit.timestamp) / 1000, 10),
|
|
|
|
|
prior_commit: event.before,
|
|
|
|
|
})] : [],
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|