1. Genera las tarjetas en la CI o en local.
  2. Publica los archivos en una rama, un artefacto o un directorio público.
  3. Inserta los archivos publicados en el README de tu perfil.

GitHub Action

Este workflow renderiza cuatro tarjetas cada día y hace commit de ellas en la rama output mediante publish_branch, sustituyendo el commit anterior para que el repositorio siga siendo pequeño. Toda opción de configuración es también un input de la Action, y el resumen del job muestra vistas previas con fragmentos para el README.

.github/workflows/profile-graphics.yml
name: Generate profile graphics

on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  generate:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v7
      - uses: mikhailkhorokhorin/profile-graphics@v1
        with:
          user: ${{ github.repository_owner }}
          token: ${{ secrets.GITHUB_TOKEN }}
          charts: streak,summary,langs,calendar
          publish_branch: output

Insertar en el README

Sustituye <user> por tu nombre de usuario de GitHub. Usa una imagen por tarjeta, o layout: dashboard para una sola imagen.

README.md
![Streak](https://raw.githubusercontent.com/<user>/<user>/output/streak.svg)
![Summary](https://raw.githubusercontent.com/<user>/<user>/output/summary.svg)
![Languages](https://raw.githubusercontent.com/<user>/<user>/output/langs.svg)
![Calendar](https://raw.githubusercontent.com/<user>/<user>/output/calendar.svg)

GitLab CI

Guarda un token con los scopes read_user y read_api como variable de CI GITLAB_TOKEN.

.gitlab-ci.yml
stages:
  - generate

generate-profile-graphics:
  image: node:22
  stage: generate
  script:
    - npm install -g profile-graphics
    - profile-graphics generate --provider gitlab --user "$GITLAB_USER_LOGIN" --token "$GITLAB_TOKEN" --output public/cards
  artifacts:
    paths:
      - public/cards

CLI

Escribe una configuración inicial, genera en local, prueba temas sin token o previsualiza una configuración.

shell
npm install -g profile-graphics
profile-graphics init --user octocat
profile-graphics generate --user octocat --token "$GITHUB_TOKEN" --charts streak,langs --output dist
profile-graphics demo --theme tokyo-night --output dist/demo
profile-graphics preview --config profile-graphics.yml --demo