Level Up Your GitHub Profile with a 3D Contribution Calendar
Transform your GitHub profile into a visually engaging masterpiece! This guide reveals how to create a stunning 3D contribution calendar using the github-profile-3d-contrib
action, boosting your profile's appeal and showcasing your activity in a unique way.
Why Use a 3D Contribution Calendar?
- Stand Out: Differentiate your profile from the crowd with a captivating visual representation of your coding activity.
- Highlight Your Contributions: Emphasize your dedication and consistent work on projects.
- Increase Engagement: Attract more attention to your profile and encourage exploration of your repositories.
Step-by-Step Guide: Setting Up Your 3D Contribution Calendar
Follow these simple steps to generate and display your 3D contribution calendar:
Step 1: Create a Special Repository
Your GitHub username needs its own Repo! Create a new repository with the same name as your GitHub username (e.g., yourusername/yourusername
). This is where the magic happens!
Step 2: Create a Workflow File
This file automates the 3D generation process like a tireless robot!
- Create a directory
.github/workflows
in your repository. - In that directory, create a file named
profile-3d.yml
. - Paste the following code into the file:
Important Notes:
- Modify the
cron
value in theschedule
section to adjust the execution time. The example runs at 18:00 UTC (which is 03:00 JST). - The
USERNAME
variable automatically uses your repository owner name. - This setup uses the default
GITHUB_TOKEN
for public repositories.
Step 3: Tweak Your Configuration (Optional)
Customize your 3D calendar to make it truly "you"!
- If you want to include private contributions and language information, you'll need to generate a personal access token with the appropriate permissions and store it as a secret in your repository settings (e.g.,
MY_PERSONAL_ACCESS_TOKEN
). Ensure it does not start withGITHUB_
. - Then, update the workflow file like this:
Step 4: Manually Launch the Action
Kickstart the process!
- Go to the "Actions" tab in your repository.
- Select "GitHub-Profile-3D-Contrib."
- Click "Run workflow."
Step 5: Add the Image to Your README.md
Show off your cool 3D calendar!
- Find the generated image paths in your repository (e.g.,
profile-3d-contrib/profile-green-animate.svg
). - Add the corresponding Markdown image tag to your
README.md
file:
Pro Tip: The action generates various styles. Experiment to find the one that you like the most!
Advanced Customization: Unleash the Power User Within!
MAX_REPOS
: Control the maximum number of repositories considered (default: 100).SETTING_JSON
: Use a custom JSON file to fine-tune the appearance of your calendar (refer to the example settings in the repository).GITHUB_ENDPOINT
: Specify a custom GitHub GraphQL endpoint, if needed.YEAR
: Creates a calendar for a specific year (past calendars).
Example: Local Usage
You can run the script locally to test it. Set environment variable GITHUB_TOKEN
and provide your username to the script to trigger the generation.
Note: It is possible you might need to build the project with npm run build
before running the script above.
Elevate Your GitHub Profile Today!
By following these steps, you can create a visually appealing and informative 3D contribution calendar that enhances your GitHub profile and showcases your coding activity. Start customizing your profile today!