1. Δημιουργήστε τις κάρτες στο CI ή τοπικά.
  2. Δημοσιεύστε τα αρχεία σε κλάδο, artifact ή δημόσιο κατάλογο.
  3. Ενσωματώστε τα δημοσιευμένα αρχεία στο README του προφίλ σας.

GitHub Action

Αυτή η ροή εργασίας αποδίδει τέσσερις κάρτες κάθε μέρα και τις κάνει commit στον κλάδο output μέσω publish_branch, αντικαθιστώντας το προηγούμενο commit ώστε το αποθετήριο να μένει μικρό. Κάθε επιλογή διαμόρφωσης είναι επίσης είσοδος του Action, και η σύνοψη εργασίας δείχνει προεπισκοπήσεις με αποσπάσματα 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

Ενσωμάτωση στο README

Αντικαταστήστε το <user> με το όνομα χρήστη σας στο GitHub. Χρησιμοποιήστε μία εικόνα ανά κάρτα ή layout: dashboard για μία ενιαία εικόνα.

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

Αποθηκεύστε ένα token με τα δικαιώματα read_user και read_api ως μεταβλητή 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

Γράψτε μια αρχική διαμόρφωση, δημιουργήστε τοπικά, δοκιμάστε θέματα χωρίς token ή κάντε προεπισκόπηση μιας διαμόρφωσης.

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