如何做一个炫酷的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中就能看到了。

相关推荐
Aliex_git3 分钟前
浏览器 API 兼容性解决方案
前端·笔记·学习
四谎真好看15 分钟前
SSM学习笔记(Spring篇 Day02)
笔记·学习·学习笔记·ssm
阿里嘎多学长2 小时前
2026-02-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管
瞎某某Blinder3 小时前
DFT学习记录[3]:material project api使用方法 mp_api调取与pymatgen保存
java·笔记·python·学习
学编程的闹钟4 小时前
PHP编程高手的信息检索与文档查阅秘籍
学习
im_AMBER4 小时前
Leetcode 119 二叉树展开为链表 | 路径总和
数据结构·学习·算法·leetcode·二叉树
leikooo5 小时前
基于 GitHub Actions 的 Notion RSS 自动化部署指南
python·github·rss
白开水丶5 小时前
vue3源码学习(五)ref 、toRef、toRefs、proxyRefs 源码学习
前端·vue.js·学习
不光头强5 小时前
SpringBoot 开发第三天 学习内容
java·spring boot·学习
Coisinilove5 小时前
MATLAB学习笔记——第二章
笔记·学习·matlab