如何做一个炫酷的Github个人简介(3DContribution)

文章目录


前言

最近放假了,毕设目前也不太想做,先搞一点小玩意玩玩,让自己的github看起来好看点。也顺便学学这个action是怎么个事。

3D-Contrib

先给大家看一下效果

我的个人主页:https://github.com/MengFanjun020906/MengFanjun020906

原仓库链接:https://github.com/yoshi389111/github-profile-3d-contrib

PS:不要在意我这个少得可怜的contributions

要做这样一个效果,就需要用到github的action,之前一直没用过,今天才知道是干啥用的。

第一步

在你的个人仓库下找到Actions

第二步

点击New workflow

第三步

创建一个新的文件,名为profile-3d.yml

第四步

文件输入这些信息,替换你自己的名字即可

bash 复制代码
name: GitHub-Profile-3D-Contrib

on:
  schedule: # 03:00 JST == 18:00 UTC
    - cron: "0 18 * * *"
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    name: generate-github-profile-3d-contrib
    steps:
      - uses: actions/checkout@v3
      - uses: yoshi389111/github-profile-3d-contrib@0.7.1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          USERNAME: 你自己的名字
      - name: Commit & Push
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git add -A .
          git diff --staged --exit-code || (git commit -m "generated" && git push)

保存

第五步

在Action下运行这一action

第六步

在你的README.md中添加

bash 复制代码
![Personal 3D Metrics](./profile-3d-contrib/profile-night-green.svg)

当然,他会创建一个文件夹,你也可以自己选择。

添加到README中就能看到了。

相关推荐
爱上好庆祝10 小时前
学习JS第十一天(JS的进阶)
前端·javascript·学习
yeiweilan10 小时前
AI应用学习
学习
吃好睡好便好10 小时前
矩阵的加减运算
开发语言·人工智能·学习·线性代数·算法·matlab·矩阵
Mister西泽10 小时前
C++ Primer Plus 第六版 编程练习题及详细答案
开发语言·c++·学习·visual studio
Simon5231411 小时前
Spring Bean----5.27学习小记
java·学习·spring
RD_daoyi11 小时前
Google 网站收录全流程解析:抓取、索引与排名机制详解
前端·javascript·人工智能·学习·搜索引擎·html
踏着七彩祥云的小丑11 小时前
AI学习——LangChain + Agent
人工智能·学习·ai
nashane11 小时前
HarmonyOS 6学习:登录状态同步失效导致评论重复登录的解决方案
学习·华为·harmonyos
bush411 小时前
嵌入式linux学习记录
学习
_李小白12 小时前
【android opencv学习笔记】Day 24: 最大稳定极值区域
android·opencv·学习