Skip to content

a104437ana/sakura-garden

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

72 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒธ sakura garden

A GitHub contributions garden for your README

Turn your GitHub activity into a garden where commits bloom into flowers ๐ŸŒธ and empty days stay green ๐ŸŒฟ

See your garden here: https://sakura-garden.vercel.app

sakura contributions

โšก Quick Setup

  1. Go to https://sakura-garden.vercel.app
  2. Enter your GitHub username
  3. Copy the garden
  4. Paste into your README

๐Ÿ”ง Manual Setup

  1. Copy the code below
<a href="https://sakura-garden.vercel.app" target="_blank" rel="noopener">
  <picture>
    <source srcset="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=dark" media="(prefers-color-scheme: dark)"/>
    <source srcset="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=light" media="(prefers-color-scheme: light)"/>
    <img src="https://sakura-garden.vercel.app/api/svg?username=your-github-username&theme=light" alt="sakura contributions" width="1000"/>
  </picture>
</a>
  1. Replace your-github-username with your GitHub username
  2. Paste into your README

๐Ÿš€ Advanced Setup

  1. Create .github/workflows/sakura-garden.yml
  2. Copy the code below
name: Sakura Garden

on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:
  push:
    branches:
      - main
    paths:
      - '.github/workflows/sakura-garden.yml'

jobs:
  generate:
    runs-on: ubuntu-latest
    permissions:
      contents: write

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Generate sakura garden
        uses: a104437ana/sakura-garden@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Commit and push
        run: |
          git config user.name "github-actions[bot]"
          git config user.email "github-actions[bot]@users.noreply.github.com"
          git checkout --orphan output
          git add sakura-garden.svg sakura-garden-dark.svg
          git commit -m "Update sakura garden" || exit 0
          git push -f origin output
  1. Paste into the file you just created
  2. Copy the code below
<a href="https://sakura-garden.vercel.app" target="_blank" rel="noopener">
  <picture>
    <source srcset="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden-dark.svg" media="(prefers-color-scheme: dark)" width="1000"/>
    <source srcset="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden.svg" media="(prefers-color-scheme: light)" width="1000"/>
    <img src="https://raw.githubusercontent.com/your-github-username/your-github-username/output/sakura-garden.svg" alt="sakura garden" width="1000"/>
  </picture>
</a>
  1. Replace your-github-username with your GitHub username
  2. Paste into your README

โš ๏ธ The garden may take a minute to appear after the workflow runs for the first time, but after that it will always be there and update automatically every day based on your GitHub activity

Features

  • ๐ŸŒธ Transforms your GitHub contributions into a beautiful garden
  • :octocat: Updates automatically based on your GitHub activity
  • ๐ŸŒ— Supports both light and dark themes
  • โšก Easy to integrate into any README or portfolio
  • ๐Ÿ’ป Dedicated website to generate and view your garden

Support

If you like this project, please consider giving it a star โญ

Stars

GitHub stars