File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed
Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name: deploy to GitHub Pages
22
33on :
44 push :
5- branches : [ main, master ]
5+ branches : [ main ]
66 workflow_dispatch :
77
88permissions :
9- contents : read
9+ contents : write
1010 pages : write
1111 id-token : write
1212
3838 with :
3939 folder : dist
4040 branch : gh-pages
41- clean : true
41+ clean : true
42+ token : ${{ secrets.PAT }}
Original file line number Diff line number Diff line change @@ -48,19 +48,6 @@ npm run dev
4848npm run build
4949```
5050
51- ## 自动部署
52- 本项目使用 GitHub Actions 实现自动构建和部署。每当代码推送到 main 或 master 分支时,GitHub Actions 会自动执行以下操作:
53-
54- 1 . 检出代码
55- 2 . 设置 Node.js 环境
56- 3 . 安装依赖
57- 4 . 构建项目
58- 5 . 将构建结果部署到 gh-pages 分支
59-
60- 这样,您只需要关注代码开发,无需手动部署。项目会自动部署到 GitHub Pages 上,访问地址为:https://stepfenshawn.github.io/ShitCodify/
61-
62- 如果您想手动触发部署,可以在 GitHub 仓库的 Actions 标签页中手动运行工作流。
63-
6451## 贡献 Prompts
6552所有语言的 prompts 模板在 [ 这个] ( src/prompt/ ) 目录下.
6653欢迎贡献代码、报告问题或提出建议!
@@ -74,6 +61,17 @@ npm run build
7461## 免责声明
7562本工具仅供学习和娱乐目的使用。请不要在生产环境或重要项目中使用生成的"屎山代码"。作者不对因使用本工具生成的代码而导致的任何问题负责。
7663
64+ ## 自动部署
65+ 本项目使用 GitHub Actions 实现自动构建和部署。每当代码推送到 main 分支时,GitHub Actions 会自动执行以下操作:
66+
67+ 1 . 检出代码
68+ 2 . 设置 Node.js 环境
69+ 3 . 安装依赖
70+ 4 . 构建项目
71+ 5 . 将构建结果部署到 gh-pages 分支
72+
73+ 这样,您只需要关注代码开发,无需手动部署。项目会自动部署到 GitHub Pages 上,访问地址为:https://stepfenshawn.github.io/ShitCodify/
74+
7775## 许可证
7876本项目采用MIT许可证。
7977
You can’t perform that action at this time.
0 commit comments