This commit is contained in:
j m 2024-05-17 08:21:31 +08:00
parent d7459c4574
commit 2b1b48454f
2 changed files with 6 additions and 3 deletions

View File

@ -132,6 +132,9 @@ task('zip', () => {
task('actions-build', () => { task('actions-build', () => {
const target = ['./templates/**', './*.yaml', 'README.md', 'LICENSE'] const target = ['./templates/**', './*.yaml', 'README.md', 'LICENSE']
src(target, {base: '.'})
.pipe(zip('halo-theme-dream2.0-plus.zip'))
.pipe(dest(distPath))
return src(target, {base: '.'}) return src(target, {base: '.'})
.pipe(dest(distPathActions)) .pipe(dest(distPathActions))
}) })
@ -149,8 +152,8 @@ task('default', series('clean', parallel('css', 'js'), 'zip'))
// release模式需要使用--tag参数指定版本号 // release模式需要使用--tag参数指定版本号
task('release', series('clean', 'version', parallel('css', 'js'), 'zip')) task('release', series('clean', 'version', parallel('css', 'js'), 'zip'))
// GitHub - Actions模式 // GitHub - Actions模式,需要使用--tag参数指定版本号
task('actions', series('clean', 'version', parallel('css', 'js'), 'zip', 'actions-build')) task('actions', series('clean', 'version', parallel('css', 'js'), 'actions-build'))
// push模式需要使用--tag参数指定版本号 // push模式需要使用--tag参数指定版本号
task('push', series('clean', 'version', parallel('css', 'js'), 'zip', 'publish')) task('push', series('clean', 'version', parallel('css', 'js'), 'zip', 'publish'))

View File

@ -1 +1 @@
1.2.2 1.2.1