# GitHub Secrets 配置步骤(可视化指南) ## 步骤 1:打开仓库设置 ``` 1. 打开 https://github.com/student/RuoYi-Platform 2. 点击顶部菜单栏的 "Settings" ┌─────────────────────────────────────────────────────────────┐ │ Code Issues Pull requests Actions Projects Wiki Settings│ │ ───────────────────────────────────────────────────────── │ │ │ │ ⚙️ Settings │ │ │ └─────────────────────────────────────────────────────────────┘ ``` ## 步骤 2:进入 Actions Secrets ``` 左侧菜单:Secrets and variables → Actions ┌─────────────────────────────────────────────────────────────┐ │ ───────────────────────────────────────────────── │ │ Secrets and variables │ │ ➜ Actions │ │ Dependabot │ │ Codespaces │ │ │ │ ───────────────────────────────────────────────── │ │ New repository secret │ │ New repository variable │ │ │ │ Repository secrets │ │ ───────────────────────────────────────────────── │ │ Name Updated │ │ ───────────────────────────────────────────────── │ │ (列表) │ └─────────────────────────────────────────────────────────────┘ ``` ## 步骤 3:添加第一个 Secret ``` 点击 "New repository secret" ┌─────────────────────────────────────────────────────────────┐ │ Name * │ │ ┌───────────────────────────────────────────────────────┐ │ │ │ DOCKER_HUB_USERNAME │ │ │ └───────────────────────────────────────────────────────┘ │ │ │ │ Secret * │ │ ┌───────────────────────────────────────────────────────┐ │ │ │ your-docker-username │ │ │ └───────────────────────────────────────────────────────┘ │ │ │ │ [Add secret] [Cancel] │ └─────────────────────────────────────────────────────────────┘ ``` ⚠️ **重要**:Secret 添加后无法查看,只能修改或删除