Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
harshraj8843 committed Nov 25, 2023
0 parents commit 54fa317
Show file tree
Hide file tree
Showing 9 changed files with 1,497 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# # GitHub provider.
# # Token requires the `read:user` and `read:org` scopes.
SPONSORKIT_GITHUB_TOKEN=
SPONSORKIT_GITHUB_LOGIN=

# # Patreon provider.
# # Create v2 API key at https://www.patreon.com/portal/registration/register-clients
# # and use the "Creator’s Access Token".
SPONSORKIT_PATREON_TOKEN=

# OpenCollective provider.
# Create an API key at https://opencollective.com/applications
SPONSORKIT_OPENCOLLECTIVE_KEY=
SPONSORKIT_OPENCOLLECTIVE_SLUG=
# `person`, `collective`, `organization`
SPONSORKIT_OPENCOLLECTIVE_TYPE=
39 changes: 39 additions & 0 deletions .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate sponsors image

on:
workflow_dispatch:
schedule:
- cron: "17 0 * * *"
push:
branches: [master]

jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: yarn install

- name: Update sponsors
run: yarn build
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: ${{ secrets.SPONSORKIT_GITHUB_LOGIN }}
SPONSORKIT_PATREON_TOKEN: ${{ secrets.SPONSORKIT_PATREON_TOKEN }}
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }}
SPONSORKIT_OPENCOLLECTIVE_SLUG: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_SLUG }}
SPONSORKIT_OPENCOLLECTIVE_TYPE: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_TYPE }}

- name: Commit and push changes
uses: crazy-max/[email protected]
with:
target_branch: sponsors
build_dir: sponsorkit
keep_history: false
committer: Harsh Raj <[email protected]>
author: Harsh Raj <[email protected]>
commit_message: Update sponsors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.json
package.json
!yarn.lock
pnpm-lock.yaml
node_modules
.env
sponsorkit
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sponsorkit
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2023 Codinasion

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Sponsors

![Sponsors](https://raw.githubusercontent.com/codinasion/sponsors/sponsors/sponsors.svg)
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
npx sponsorkit --dir=./sponsorkit/ -w=800
# npx sponsorkit --dir=./sponsorkit/ -w=1800 --name=sponsors.wide
# npx sponsorkit --dir=./sponsorkit/ -w=800 --name=sponsors.part1 --filter=">=9.9"
# npx sponsorkit --dir=./sponsorkit/ -w=800 --name=sponsors.part2 --filter="<9.9"
44 changes: 44 additions & 0 deletions sponsorkit.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { defineConfig, presets } from "sponsorkit";



export default defineConfig({
// Providers configs
github: {
// `user` or `organization`
type: "organization",
},

tiers: [
{
title: "🀝 Supporter 🀝",
preset: presets.xs,
},
{
title: "πŸ’ Backer πŸ’",
monthlyDollars: 10,
preset: presets.small,
},
{
title: "πŸ₯ˆ Silver Sponsor πŸ₯ˆ",
monthlyDollars: 50,
preset: presets.base,
},
{
title: "πŸ₯‡ Gold Sponsor πŸ₯‡",
monthlyDollars: 100,
preset: presets.medium,
},
{
title: "🌟 Platinum Sponsor 🌟",
monthlyDollars: 500,
preset: presets.large,

},
{
title: "πŸ’Ž Diamond Sponsor πŸ’Ž",
monthlyDollars: 1000,
preset: presets.xl,
},
],
});
Loading

0 comments on commit 54fa317

Please sign in to comment.