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

相关推荐
知识分享小能手4 小时前
Redis入门学习教程,从入门到精通,Redis 概述:知识点详解(1)
数据库·redis·学习
red_redemption6 小时前
自由学习记录(135)
学习
一点一木7 小时前
🚀 2026 年 2 月 GitHub 十大热门项目排行榜 🔥
人工智能·github
金山几座7 小时前
C#学习记录-事件
开发语言·学习·c#
X在敲AI代码7 小时前
推荐系统学习 D1推荐系统核心概述
学习·推荐算法
我的xiaodoujiao8 小时前
API接口自动化测试详细图文教程学习系列1--序章
python·学习·pytest
圆弧YH8 小时前
服务器及网站操作
学习
Yupureki8 小时前
《MySQL数据库基础》1. 数据库基础
c语言·开发语言·数据库·c++·mysql·oracle·github
Alphapeople8 小时前
具身智能学习路线
学习
肖恭伟9 小时前
VScode入门学习
ide·vscode·学习