Repository navigation
Description
Hey!
Since the Vercel deployment is currently down, I found a way to keep using the activity graph without relying on Vercel or Replit.
The idea is to generate the graph as an SVG using GitHub Actions and store it in the repository.
1. Create the workflow
Create this file in your repository:
.github/workflows/activity-graph.yml
Then add:
name: Update Activity Graph
on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Generate activity graph
uses: maurodesouza/github-readme-activity-graph-action@v1
with:
username: YOUR_USERNAME
options: theme=github-dark&area=true&hide_border=true
output_path: dist/activity-graph.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish SVG
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Replace YOUR_USERNAME with your GitHub username.
2. Run the Action
After committing the workflow, go to:
Actions → Update Activity Graph → Run workflow
The workflow will generate the SVG and publish it to the output branch.
3. Use the generated SVG in the README
Then the README can use:
<a href="https://github.com/ashutosh00710/github-readme-activity-graph">
<img src="https://raw.githubusercontent.com/username/username/output/activity-graph.svg?v=1" alt="username github activity graph">
</a>This means the graph is generated automatically by GitHub Actions and served directly from GitHub, instead of depending on:
github-readme-activity-graph.vercel.app
The graph can still use options such as theme, area, and hide_border.
I think this could be a good alternative to the current Vercel deployment, especially for users who just want the graph to keep working without setting up another external hosting service.
Activity
satishjhanwer commentedon Nov 1, 2026
@flameastro I have raised a PR for the same #274