Skip to content

Commit 048f837

Browse files
committed
Merge branch 'gh-pages' of github.com:bayoss/bayoss.github.io into gh-pages
add package lock file
2 parents 79ae5c3 + 7d59e7a commit 048f837

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
run: npm run build
3131

3232
- name: Upload artifact
33-
uses: actions/upload-pages-artifact@v1
33+
uses: actions/upload-artifact@v4
3434
with:
35+
name: my-artifact
3536
path: ./out
3637

3738
deploy:
@@ -41,6 +42,12 @@ jobs:
4142
runs-on: ubuntu-latest
4243
needs: build
4344
steps:
45+
- name: Download artifact
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: my-artifact
4449
- name: Deploy to GitHub Pages
4550
id: deployment
46-
uses: actions/deploy-pages@v1
51+
uses: JamesIves/github-pages-deploy-action@v4
52+
with:
53+
folder: my-artifact

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# next.js
77
/.next/
8-
/out/
8+
#/out/
99

1010
# production
1111
/build
@@ -24,4 +24,4 @@ yarn-error.log*
2424

2525
# typescript
2626
*.tsbuildinfo
27-
next-env.d.ts
27+
next-env.d.ts

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
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

0 commit comments

Comments
 (0)