GitHub美化个人主页3D图表显示配置操作

这个功能主要是用的这个开源仓库:https://github.com/yoshi389111/github-profile-3d-contrib

想看效果的话,我的个人主页:https://github.com/Sjj1024

开始操作

1.创建自己的github主页属性项目------跟你github用户名一致即可, 比如我github名字叫是sjj1024, 创建一个sjj1024的同名项目,勾选生成README.md文件。

  1. 开启Action的读写权限,勾选后保存即可:

- Settings -> Action -> General -> Workflow permissions

- read and write permissions

  1. 创建WorkFlow文件:

- 项目Action里面点击创建一个WorkFlow文件,名字叫Profile3D

文件内容如下:

复制代码
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: ${{ github.repository_owner }}
      - name: Commit & Push
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com
          git add -A .
          git commit -m "generated"
          git push

然后手动执行一次 action:Actions​ -> GitHub-Profile-3D-Contrib​ -> Run workflow

然后会在项目目录种生成这些文件(带路径,各种主题的都有):

  • profile-3d-contrib/profile-green-animate.svg
  • profile-3d-contrib/profile-green.svg
  • profile-3d-contrib/profile-season-animate.svg
  • profile-3d-contrib/profile-season.svg
  • profile-3d-contrib/profile-south-season-animate.svg
  • profile-3d-contrib/profile-south-season.svg
  • profile-3d-contrib/profile-night-view.svg
  • profile-3d-contrib/profile-night-green.svg
  • profile-3d-contrib/profile-night-rainbow.svg
  • profile-3d-contrib/profile-gitblock.svg

然后在README.md里面引入:

复制代码
![](./profile-3d-contrib/profile-green.svg)

最后的效果如下:

相关推荐
小雨青年4 分钟前
GitHub Copilot 默认启用训练之后 企业安全如何应对
安全·github·copilot
攀登的牵牛花2 小时前
2.1w Star 的 pretext 火在哪?
前端·github
糖猫猫_2 小时前
Kite 实现逻辑删除
后端·github
一叶萩Charles3 小时前
GitHub AI Agent 开源生态概览
人工智能·开源·github
bxri3 小时前
团队协作中的 Git 工作流(企业级实战)
git·gitee·github
第一程序员3 小时前
Python与容器化:Docker和Kubernetes实战
python·github
CoderJia程序员甲4 小时前
GitHub 热榜项目 - 日榜(2026-03-30)
人工智能·ai·大模型·github·ai教程
MicrosoftReactor4 小时前
技术速递|从想法到拉取请求:使用 GitHub Copilot CLI 构建的实用指南
github·copilot·cli
汪海游龙4 小时前
03.31 AI 精选:把通用设备改造成网络路由器的方法
github
AmyLin_20015 小时前
【pdf2md-1:开篇】高保真PDF转MarkDown附源码(标题/表格/图片全还原)
python·pdf·github·sdk·pdf2md·文档工具