File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 30
30
run : npm run build
31
31
32
32
- name : Upload artifact
33
- uses : actions/upload-pages- artifact@v1
33
+ uses : actions/upload-artifact@v4
34
34
with :
35
+ name : my-artifact
35
36
path : ./out
36
37
37
38
deploy :
41
42
runs-on : ubuntu-latest
42
43
needs : build
43
44
steps :
45
+ - name : Download artifact
46
+ uses : actions/download-artifact@v4
47
+ with :
48
+ name : my-artifact
44
49
- name : Deploy to GitHub Pages
45
50
id : deployment
46
- uses : actions/deploy-pages@v1
51
+ uses : JamesIves/github-pages-deploy-action@v4
52
+ with :
53
+ folder : my-artifact
Original file line number Diff line number Diff line change 5
5
6
6
# next.js
7
7
/.next /
8
- /out /
8
+ # /out/
9
9
10
10
# production
11
11
/build
@@ -24,4 +24,4 @@ yarn-error.log*
24
24
25
25
# typescript
26
26
* .tsbuildinfo
27
- next-env.d.ts
27
+ next-env.d.ts
Original file line number Diff line number Diff line change
1
+
Original file line number Diff line number Diff line change 1
- # bayoss.github.io
1
+ # bayoss.github.io
2
+
3
+ 本站初始版本使用 v0.dev 生成,使用了 next.js 来实现。
4
+
5
+ ## 本地开发步骤
6
+ - git clone 本仓库代码到本地
7
+ - 进入项目目录,git checkout origin/gh-pages 拉取远程分支,然后切换 git switch gh-pages
8
+ - 确认分支存在后,安装依赖 npm install
9
+ - 本地启动 npm run dev
10
+ - 生成静态内容 npm run build
You can’t perform that action at this time.
0 commit comments