Skip to content

Commit

Permalink
chore(sponsors): autogenerate GitHub sponsors image (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek authored Mar 6, 2023
1 parent fca139b commit debd338
Show file tree
Hide file tree
Showing 9 changed files with 3,521 additions and 298 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/sponsor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: sponsor

on:
schedule:
- cron: "0 0 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
sponsor:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Install Dependencies
run: |
npm ci
- name: Regenerate sponsors images
run: npm run generate:sponsorkit
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
# SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_GITHUB_TOKEN_OPENCOLLECTIVE_TOKEN }}

- name: Commit updated images
uses: EndBug/add-and-commit@v9
with:
add: "img/github-sponsors.svg website/static/img/github-sponsors.svg"
message: "chore(sponsors): update sponsors image"
push: true
committer_name: gh-actions
committer_email: [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ coverage

# parcel cache
.cache

# sponsorkit cache
img/.cache.json

# env
.env
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ It doesn't have a large company that sits behind - its ongoing development is po

### Members 💪

[![](https://opencollective.com/typegraphql/tiers/members.svg?avatarHeight=48&width=890&button=false)](https://opencollective.com/typegraphql#contributors)
[![](https://opencollective.com/typegraphql/tiers/members.svg?avatarHeight=45&width=320&button=false)](https://opencollective.com/typegraphql#contributors)

### Backers ☕
### GitHub Sponsors

[![](https://opencollective.com/typegraphql/tiers/backers.svg?avatarHeight=48&width=890&button=false)](https://opencollective.com/typegraphql#contributors)
![sponsors](./img/github-sponsors.svg)

## Want to help?

Expand Down
123 changes: 123 additions & 0 deletions img/github-sponsors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit debd338

Please sign in to comment.