Skip to content

Rectmoon/git-workflow-react-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

流程

  1. 生成 ssh 部署公钥和私钥
ssh-keygen -t ed25519 -f .../.ssh/github-actions-deploy
  1. 在 GitHub repo 的 Settings/Deploy keys 中添加刚刚生成的公钥
  2. 在 GitHub repo 的 Settings/Secrets 中添加 GH_ACTION_DEPLOY_KEY,值为刚刚生成的私钥
  3. 编写 git actions, 目录结构如下
.github
   └──workflows
        └──ci.yml
  1. 在 package.json 配置 homepage: https://rectmoon.github.io/git-workflow-react-demo

  2. 提交代码

  3. 记得选择 gh-pages 发布的主题