Skip to content

About

Publish your GitHub Sponsors listing API data to GitHub Pages

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

GitHub Sponsors Listing

A tool for publishing your GitHub Sponsors listing in JSON format.

  • Leverages the GitHub GraphQL API to fetch listing data
  • Uses GitHub Actions to publish this data to GitHub Pages
  • Refreshes the published data every 24 hours

Example use case: Display your current sponsorship goal in your own web application!

How to use

Setup

  1. Fork this repository
  2. Enable Actions in your fork:
    • Go to your fork's Settings → Code and automation → Actions → General
    • Select "Allow all actions and reusable workflows"
    • Click "Save"
  3. Generate a Personal Access Token:
    • Go to your account's Personal access tokens
    • Click "Generate new token" → "Generate new token (classic)"
    • Set "Note" to "github-sponsors-listing"
    • Set "Expiration" to "No expiration"
    • For "Scopes", select "read:user"
    • Click "Generate token"
  4. Add the Personal Access Token as a secret in your fork:
    • Go to your fork's Settings → Security → Secrets and variables → Actions
    • Click "New repository secret"
    • Set "Name" to PERSONAL_ACCESS_TOKEN
    • Set "Secret" to the token you obtained in the previous step
    • Click "Add secret"
  5. Configure GitHub Pages in your fork:
    • Go to your fork's Settings → Code and automation → Pages
    • Set "Source" to "GitHub Actions"

First deploy

  • In your fork, go to Actions → GitHub Pages
  • Click "Run workflow" → "Run workflow"
  • Wait for the Build and Deploy jobs to run...
  • All done! A link to your published GitHub Pages site should appear in the action summary.

Be sure to visit the published GitHub Pages site to see what data is available there.

Scheduled updates

Assuming the first deploy went well, there's nothing else you need to do.

The published data will be refreshed every 24 hours automatically.

To unpublish the data, go to your fork's Settings → Pages and click "Unpublish site".

About

Publish your GitHub Sponsors listing API data to GitHub Pages

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Sponsor this project

Used by

Contributors

Languages