Skip to content

Phigros-rks-Image-Maker模板使用教程 #3

Description

@Tb114

Phigros rks Image Maker Template使用教程

项目地址: https://github.com/Tb114/Phigros-rks-Image-Maker-Template

该项目为Phigros-rks-Image-Maker的启用github-actions版的模板

info.tsv等文件来自于Phigros Resource

Caution

切记, 禁止以任何方式攻击TapTap或鸽游的服务器, 造成的后果不由作者承担

使用步骤

1. 获取SessionToken(必要)

网上有教程,不过多赘述

2. 以此为模板创建你的仓库

  • 单击右上角绿色按钮Use this template

Note

如果没有,看看是不是找错仓库了,是Phigros-rks-Image-Maker-Template而不是Phigros-rks-Image-Maker

  • 在弹出菜单中选择Create a new repository

Important

  • 勾选 Include all branches 项(必要), 使右侧开关显示On
  • GeneralRepository name *栏中填写你的仓库名称(这很重要), (建议使用较短的命名)
  • ConfigurationChoose visibility *项建议保持public(否则你无法在不登录时看到),保证你的SessionToken不会泄露(前提是你需要跟着我做)
  • 点击绿色按钮Create Repository并稍等片刻

3. 配置Repository secrets

  • 打开刚才Github自动为你跳转到的网页,若不小心关闭,可在点击页面右上角用户头像给出的菜单中选择Your Repositories并找到你刚才命名的仓库
  • 转到Settings页面
  • 在左侧菜单中找到Secrets and variables
  • 点击该项再点击Actions
  • 点击绿色按钮New repository secret

Important

  • Name*栏中填写SESSIONTOKEN, 必须严格相同
  • Secret*栏中填写你的SessionToken(详见步骤1)
  • 点击绿色按钮Add secret

4.更新文件(建议在创建仓库后进行一次,该项会定时执行)

  • 转到Actions页面
  • 点击右侧Actions栏中的Run updatefile.py daily
  • 点击Run workflow然后点击绿色按钮Run workflow
  • 刷新页面等待工作流完成,若出现了绿色的勾,你就做对了以上所有操作,如果时红色的叉,检查一下前面有没有哪里错了
    经检查若发现步骤没有出错可以在仓库Phigros-rks-Image-MakerPhigros-rks-Image-Maker-Template提交一下Issue,也可以bilibili上面私信

5.生成你的成绩图(该项也会定时执行)

  • 同步骤4,但是应该点击Actions栏中的Run main.py hourly

6.找到你的成绩图

  • 转到Code页面
  • 找到并点击result.png文件(国内网络可能需要一定加载时间)或者打开网址https://github.com/{你的用户名}/{刚才你创建仓库的名称}/blob/main/result.png

Tip

国内访问速度慢可以在网址前面加https://github.akams.cn/https://github.akams.cn/https://github.com/{你的用户名}/{刚才你创建仓库的名称}/blob/main/result.png/

如: 你的用户名叫lchzh3473, 刚才命名的仓库名称为phi_rks_image, 那么你图片对应的网址便是 https://github.com/lchzh3473/phi_rks_image/blob/main/result.png?RAW=TRUEhttps://github.akams.cn/https://github.com/lchzh3473/phi_rks_image/blob/main/result.png

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tool帮助没什么特别的,就是帮助你的

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions