Sync Sponsors (Org Profile) #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================= | |
| # Anthril — Sponsor Sync (Org-Level) | |
| # ============================================================================= | |
| # Updates profile/README.md and SPONSORS.md in the anthril/.github repo. | |
| # This renders on the github.com/anthril org profile page. | |
| # | |
| # Setup: | |
| # 1. Create a PAT with read:user and read:org scopes from the org owner account | |
| # 2. Add it as a repository secret named SPONSORS_TOKEN | |
| # 3. Ensure profile/README.md and SPONSORS.md contain the marker comments | |
| # ============================================================================= | |
| name: Sync Sponsors (Org Profile) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Runs daily at 06:00 UTC | |
| - cron: "0 6 * * *" | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-sponsors: | |
| runs-on: ubuntu-latest | |
| name: Update sponsor listings | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # ----------------------------------------------------------------------- | |
| # SPONSORS.md — Full breakdown by tier | |
| # ----------------------------------------------------------------------- | |
| - name: "SPONSORS.md — Founding Sponsors ($2,500+)" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "SPONSORS.md" | |
| organization: true | |
| minimum: 250000 | |
| marker: "founding-sponsors" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="100px" alt="{{{ login }}}" /></a> ' | |
| - name: "SPONSORS.md — Partners ($500–$2,499)" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "SPONSORS.md" | |
| organization: true | |
| minimum: 50000 | |
| maximum: 249999 | |
| marker: "partners" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="80px" alt="{{{ login }}}" /></a> ' | |
| - name: "SPONSORS.md — Backers ($100–$499)" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "SPONSORS.md" | |
| organization: true | |
| minimum: 10000 | |
| maximum: 49999 | |
| marker: "backers" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="60px" alt="{{{ login }}}" /></a> ' | |
| - name: "SPONSORS.md — Builders ($25–$99)" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "SPONSORS.md" | |
| organization: true | |
| minimum: 2500 | |
| maximum: 9999 | |
| marker: "builders" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="45px" alt="{{{ login }}}" /></a> ' | |
| - name: "SPONSORS.md — Supporters ($1–$24)" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "SPONSORS.md" | |
| organization: true | |
| minimum: 100 | |
| maximum: 2499 | |
| marker: "supporters" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="35px" alt="{{{ login }}}" /></a> ' | |
| # ----------------------------------------------------------------------- | |
| # profile/README.md — Compact sponsor showcase for org profile | |
| # ----------------------------------------------------------------------- | |
| - name: "README.md — Featured Sponsors ($100+)" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "profile/README.md" | |
| organization: true | |
| minimum: 10000 | |
| marker: "readme-sponsors-featured" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="60px" alt="{{{ login }}}" /></a> ' | |
| - name: "README.md — All Sponsors" | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.SPONSORS_TOKEN }} | |
| file: "profile/README.md" | |
| organization: true | |
| marker: "readme-sponsors-all" | |
| template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="35px" alt="{{{ login }}}" /></a> ' | |
| # ----------------------------------------------------------------------- | |
| # Commit changes | |
| # ----------------------------------------------------------------------- | |
| - name: Deploy changes | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: main | |
| folder: "." | |
| clean: false | |
| commit-message: "chore: sync sponsor listings [automated]" |