Files
.profile/.gitea/workflows/profile.yml
yam 0e6ec8a80f
All checks were successful
Generate Profile SVG / build-svg (push) Successful in 10s
Add .gitea/workflows/profile.yml
2026-03-13 21:32:15 +03:00

58 lines
2.0 KiB
YAML

name: Generate Profile SVG
on:
push:
branches: [ main ]
jobs:
build-svg:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Terminal SVG
run: |
python3 -c "
VB_WIDTH = 600
VB_HEIGHT = 190
svg_content = f'''<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 {VB_WIDTH} {VB_HEIGHT}' width='100%' fill='none'>
<rect width='{VB_WIDTH}' height='{VB_HEIGHT}' rx='10' fill='#1a1b26'/>
<g font-family='monospace' font-size='13'>
<circle cx='20' cy='20' r='6' fill='#ff5f56'/>
<circle cx='40' cy='20' r='6' fill='#ffbd2e'/>
<circle cx='60' cy='20' r='6' fill='#27c93f'/>
<text x='20' y='55' fill='#7aa2f7' font-size='14' font-weight='bold'>yam@inzhenerika:~$ neofetch</text>
<g fill='#9ece6a'>
<text x='20' y='80'>OS:</text>
<text x='20' y='100'>Role:</text>
<text x='20' y='120'>Stack:</text>
<text x='20' y='140'>Status:</text>
</g>
<g fill='#cfc9c2'>
<text x='90' y='80'>Linux</text>
<text x='90' y='100'>Fullstack Software Engineer</text>
<text x='90' y='120'>Python, JavaScript, FastAPI, Django, Vue3, PostgreSQL, Elasticsearch</text>
<text x='90' y='140'>Building License Server...</text>
</g>
<text x='20' y='170' fill='#7aa2f7' font-size='14' font-weight='bold'>yam@inzhenerika:~$ █</text>
</g>
</svg>'''
with open('profile-card.svg', 'w') as f:
f.write(svg_content)
"
- name: Commit and Push
run: |
git config user.name "gitea-actions[bot]"
git config user.email "actions@gitea.io"
git add profile-card.svg
git commit -m "docs: update profile card" || exit 0
git push