From 2ece2c2561b901e47438f55854e3f192a50dfc1c Mon Sep 17 00:00:00 2001 From: j m <1406993111@qq.com> Date: Fri, 17 May 2024 08:16:26 +0800 Subject: [PATCH] 1.2.2 --- .github/workflows/build.yml | 2 +- gulpfile.js | 5 +++-- version | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb1365d..628c70b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: halo-theme-dream2.0-plus - path: dist + path: dist-actions # 如果是master分支,创建Release - name: Create Release diff --git a/gulpfile.js b/gulpfile.js index 548591f..b34d893 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -14,6 +14,7 @@ const resolve = (name) => path.resolve(__dirname, name) const cssPath = './templates/assets/css' const jsPath = './templates/assets/js' const distPath = './dist' +const distPathActions = './dist-actions' const devModel = process.env.npm_config_devel const version = process.env.npm_config_tag @@ -132,7 +133,7 @@ task('zip', () => { task('actions-build', () => { const target = ['./templates/**', './*.yaml', 'README.md', 'LICENSE'] return src(target, {base: '.'}) - .pipe(dest(distPath)) + .pipe(dest(distPathActions)) }) task('publish', (done) => { @@ -149,7 +150,7 @@ task('default', series('clean', parallel('css', 'js'), 'zip')) task('release', series('clean', 'version', parallel('css', 'js'), 'zip')) // 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参数指定版本号 task('push', series('clean', 'version', parallel('css', 'js'), 'zip', 'publish')) diff --git a/version b/version index 23aa839..cb174d5 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.2.2 +1.2.1 \ No newline at end of file