00117 Github 主页设置贪吃蛇详细教程-windows11
前言
如何在 Github 主页上设置贪吃蛇。
源教程地址:https://blog.csdn.net/m0_63230155/article/details/136700206
最终效果图:
操作系统:Windows 11 家庭中文版
步骤
-
在 Github 上创建一个与用户同名
Public
的仓库(如LuYF-Lemon-love
)。 -
创建一个 Github
工作流
,用于自动生成贪吃蛇动画。即创建一个文件.github/workflows/snake.yml
:
1 | name: generate animation |
- 生成一个 token,(具备
workflow
权限即可),步骤依次为: Github 用户设置 (Settings
)->Developer Settings
->Personal access tokens
->Tokens (classic)
->Generate new token
->Generate new token (classic)
->生成具备 workflow 权限的即可
。
复制生成的 Token,一定要保存好,可以放到备忘录里面,这玩意儿只能看一次。
- 将自己的 token 按下面的操作新建保存就可以了。
- 重新运行工作流。
- 在
README.md
中填写下面代码,即会出现两条贪吃蛇。
1 | ![暗色](https://raw.githubusercontent.com/你的用户名/你的仓库名/output/github-contribution-grid-snake-dark.svg) |
我的主页仓库为: https://github.com/LuYF-Lemon-love/LuYF-Lemon-love
结语
第一百一十七篇博文写完,开心!!!!
今天,也是充满希望的一天。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 LuYF-Lemon-love の Blog!