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/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          USERNAME: ${{ github.repository_owner }}
      - name: Commit & Push
        run: |
          git config user.name github-actions
          git config user.email [email protected]
          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)

最后的效果如下:

相关推荐
饼干ovo2 小时前
shell编程
java·git·github
HelloGitHub4 小时前
3 个超火的开源项目「GitHub 热点速览」
开源·github
JinSo5 小时前
create-easy-editor —— 快速搭建你的可视化编辑器
前端·前端框架·github
bubiyoushang8889 小时前
解决 Git 访问 GitHub 时的 SSL 错误
git·github·ssl
tonngw11 小时前
【Mac 从 0 到 1 保姆级配置教程 16】- Docker 快速安装配置、常用命令以及实际项目演示
macos·docker·容器·开源·github·docker desktop·orbstack
海码00713 小时前
【版本控制】Git 和 GitHub 入门教程
git·github
网硕互联的小客服16 小时前
503 Service Unavailable:服务器暂时无法处理请求,可能是超载或维护中如何处理?
服务器·git·github
abcnull18 小时前
github开源协议选择
git·github·开源协议
安庆平.Я20 小时前
git互联GitHub 使用教程
git·github
掘金安东尼21 小时前
字节-Trae、阿里-通义灵码、腾讯-CodeBuddy,为什么都在“卷”AI编码?
面试·llm·github