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!
- Fork this repository
- 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"
- 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"
- 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"
- Configure GitHub Pages in your fork:
- Go to your fork's Settings → Code and automation → Pages
- Set "Source" to "GitHub Actions"
- 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.
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".