빠른 시작
카드를 어디서 생성할지에 맞는 연동 방식을 고르세요.
- CI나 로컬에서 카드를 생성합니다.
- 파일을 브랜치, 아티팩트, 공개 디렉터리에 게시합니다.
- 게시한 파일을 프로필 README에 삽입합니다.
GitHub Action
이 워크플로는 매일 카드 네 장을 렌더링해 publish_branch로 output 브랜치에 커밋하며, 이전 커밋을 대체해 저장소를 작게 유지합니다. 모든 설정 옵션은 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




GitLab CI
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
시작 설정을 쓰고, 로컬에서 생성하고, 토큰 없이 테마를 써 보거나 설정을 미리 보세요.
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