Skip to content

Commit b419654

Browse files
committed
feat: add netlify deployment
1 parent ce5d719 commit b419654

File tree

9 files changed

+725
-1571
lines changed

9 files changed

+725
-1571
lines changed

action/dist/main/index.js

Lines changed: 68 additions & 30 deletions
Large diffs are not rendered by default.

action/dist/post/index.js

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37866,7 +37866,7 @@ const jsonScalars = [
3786637866
identify: value => typeof value === 'boolean',
3786737867
default: true,
3786837868
tag: 'tag:yaml.org,2002:bool',
37869-
test: /^true|false$/,
37869+
test: /^true$|^false$/,
3787037870
resolve: str => str === 'true',
3787137871
stringify: stringifyJSON
3787237872
},
@@ -38761,7 +38761,7 @@ const timestamp = {
3876138761
}
3876238762
return new Date(date);
3876338763
},
38764-
stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
38764+
stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, '')
3876538765
};
3876638766

3876738767
exports.floatTime = floatTime;
@@ -39763,23 +39763,32 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
3976339763
start = start.replace(/\n+/g, `$&${indent}`);
3976439764
}
3976539765
const indentSize = indent ? '2' : '1'; // root is at -1
39766-
let header = (literal ? '|' : '>') + (startWithSpace ? indentSize : '') + chomp;
39766+
// Leading | or > is added later
39767+
let header = (startWithSpace ? indentSize : '') + chomp;
3976739768
if (comment) {
3976839769
header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
3976939770
if (onComment)
3977039771
onComment();
3977139772
}
39772-
if (literal) {
39773-
value = value.replace(/\n+/g, `$&${indent}`);
39774-
return `${header}\n${indent}${start}${value}${end}`;
39775-
}
39776-
value = value
39777-
.replace(/\n+/g, '\n$&')
39778-
.replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
39779-
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
39780-
.replace(/\n+/g, `$&${indent}`);
39781-
const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
39782-
return `${header}\n${indent}${body}`;
39773+
if (!literal) {
39774+
const foldedValue = value
39775+
.replace(/\n+/g, '\n$&')
39776+
.replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
39777+
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
39778+
.replace(/\n+/g, `$&${indent}`);
39779+
let literalFallback = false;
39780+
const foldOptions = getFoldOptions(ctx, true);
39781+
if (blockQuote !== 'folded' && type !== Scalar.Scalar.BLOCK_FOLDED) {
39782+
foldOptions.onOverflow = () => {
39783+
literalFallback = true;
39784+
};
39785+
}
39786+
const body = foldFlowLines.foldFlowLines(`${start}${foldedValue}${end}`, indent, foldFlowLines.FOLD_BLOCK, foldOptions);
39787+
if (!literalFallback)
39788+
return `>${header}\n${indent}${body}`;
39789+
}
39790+
value = value.replace(/\n+/g, `$&${indent}`);
39791+
return `|${header}\n${indent}${start}${value}${end}`;
3978339792
}
3978439793
function plainString(item, ctx, onComment, onChompKeep) {
3978539794
const { type, value } = item;

0 commit comments

Comments
 (0)