Skip to content

Commit b2120fd

Browse files
committed
docs: update migration docs
1 parent aaddd1e commit b2120fd

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

docs/docs/en/guide/migration.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,23 @@ Starting from 0.3.0, Rin now uses Workers to host static assets instead of Cloud
7777

7878
Ensure your Cloudflare API Token has the following permissions:
7979
- **Cloudflare Workers**:Edit
80-
- **Account**:Read
8180
- **D1**:Edit
8281
- **R2**:Edit (if using R2 storage)
8382

8483
![1000000663](/cloudflare-api-key-en.png)
8584

86-
### Step 5: Deploy
85+
### Step 5: Rename the Branch
86+
87+
1. If the previously forked branch was `dev`, you need to manually rename it to `main` or `master`.
88+
89+
### Step 6: Deploy
8790

8891
1. Go to the Actions tab in your repository
89-
2. Select the **"Deploy"** workflow
92+
2. Select the **"Build"** workflow
9093
3. Click **"Run workflow"**
94+
4. After successful build, the `Deploy` workflow will be automatically triggered to automatically deploy to workers.
9195

92-
### Step 6: Verify Deployment
96+
### Step 7: Verify Deployment
9397

9498
1. Visit your frontend URL
9599
2. Test the login functionality

docs/docs/zh/guide/migration.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,27 @@ GITHUB_CLIENT_SECRET → RIN_GITHUB_CLIENT_SECRET
7676
### 第四步:更新 Cloudflare API Key 权限
7777

7878
确保您的 Cloudflare API Token 具有以下权限:
79-
- **Cloudflare Workers**:Edit
80-
- **Account**:Read
8179
- **D1**:Edit
82-
- **R2**:Edit (如果使用 R2 存储)
80+
- **Workers R2 存储**:Edit (如果使用 R2 存储)
81+
- **Workers 脚本**:Edit
8382

8483
![1000000663](/cloudflare-api-key-cn.png)
8584

8685

87-
### 第五步:部署
86+
### 第五步:重命名分支名
87+
88+
89+
1. 若先前 fork 仓库的分支为 `dev`,需手动重命名为 `main``master`
90+
91+
92+
### 第六步:部署
8893

8994
1. 进入仓库的 Actions 标签
90-
2. 选择 **"Deploy"** 工作流
95+
2. 选择 **"Build"** 工作流
9196
3. 点击 **"Run workflow"**
97+
4. 在构建成功后会自动触发 `Deploy` 工作流自动部署到 workers
9298

93-
### 第六步:验证部署
99+
### 第七步:验证部署
94100

95101
1. 访问您的前端 URL
96102
2. 测试登录功能

0 commit comments

Comments
 (0)