mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 18:59:40 +08:00
1.2.2
This commit is contained in:
parent
cf9239f34a
commit
2ece2c2561
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: halo-theme-dream2.0-plus
|
name: halo-theme-dream2.0-plus
|
||||||
path: dist
|
path: dist-actions
|
||||||
|
|
||||||
# 如果是master分支,创建Release
|
# 如果是master分支,创建Release
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
@ -14,6 +14,7 @@ const resolve = (name) => path.resolve(__dirname, name)
|
|||||||
const cssPath = './templates/assets/css'
|
const cssPath = './templates/assets/css'
|
||||||
const jsPath = './templates/assets/js'
|
const jsPath = './templates/assets/js'
|
||||||
const distPath = './dist'
|
const distPath = './dist'
|
||||||
|
const distPathActions = './dist-actions'
|
||||||
const devModel = process.env.npm_config_devel
|
const devModel = process.env.npm_config_devel
|
||||||
const version = process.env.npm_config_tag
|
const version = process.env.npm_config_tag
|
||||||
|
|
||||||
@ -132,7 +133,7 @@ task('zip', () => {
|
|||||||
task('actions-build', () => {
|
task('actions-build', () => {
|
||||||
const target = ['./templates/**', './*.yaml', 'README.md', 'LICENSE']
|
const target = ['./templates/**', './*.yaml', 'README.md', 'LICENSE']
|
||||||
return src(target, {base: '.'})
|
return src(target, {base: '.'})
|
||||||
.pipe(dest(distPath))
|
.pipe(dest(distPathActions))
|
||||||
})
|
})
|
||||||
|
|
||||||
task('publish', (done) => {
|
task('publish', (done) => {
|
||||||
@ -149,7 +150,7 @@ task('default', series('clean', parallel('css', 'js'), 'zip'))
|
|||||||
task('release', series('clean', 'version', parallel('css', 'js'), 'zip'))
|
task('release', series('clean', 'version', parallel('css', 'js'), 'zip'))
|
||||||
|
|
||||||
// GitHub - Actions模式
|
// GitHub - Actions模式
|
||||||
task('actions', series('clean', 'version', parallel('css', 'js'), 'actions-build'))
|
task('actions', series('clean', 'version', parallel('css', 'js'), 'zip', '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'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user