File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
run : npm install
23
23
24
24
- name : Build project
25
- run : npm run build # 假设构建输出到 dist 文件夹
25
+ run : npm run pages # 假设构建输出到 dist 文件夹
26
26
27
27
- name : Deploy to GitHub Pages
28
28
uses : peaceiris/actions-gh-pages@v3
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const path = require('path');
3
3
4
4
// 定义源文件夹和目标文件夹
5
5
const sourceDir = path . join ( __dirname , 'public' ) ;
6
- const targetDir = path . join ( __dirname , 'docs ' ) ;
6
+ const targetDir = path . join ( __dirname , 'dist ' ) ;
7
7
8
8
// 确保目标文件夹存在
9
9
if ( ! fs . existsSync ( targetDir ) ) {
@@ -37,4 +37,4 @@ function copyFolderRecursive(source, target) {
37
37
38
38
// 执行复制
39
39
copyFolderRecursive ( sourceDir , targetDir ) ;
40
- console . log ( 'All files copied from public to docs !' ) ;
40
+ console . log ( 'All files copied from public to dist !' ) ;
You can’t perform that action at this time.
0 commit comments