部署友链朋友圈后端
配置 Leancloud
账号注册
前往 Leancloud 国际版官网(推荐国际版)注册账号,登录。
新建应用
进入控制台创建一个应用,名字随意。
选开发版,任意描述。
获取应用 Keys
转到设置 - 应用 Keys,将应用 ID(AppID)和应用密钥(AppKey)保存下来,方便后面步骤使用。
配置 Github Action
Fork 仓库
地址:https://github.com/Rock-Candy-Tea/hexo-circle-of-friends/
vim [root]/hexo_circle_of_friends/setting.py:
123456LINK = [ { "link":"https://www.casecoei.top/link/", # 修改为你的友链页地址 "theme":"butterfly" # 主题 },]
添加环境变量
转到 Settings - Secrets - New repo ...