scheduled-task_update-sponsors.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Generate Sponsors README
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: 30 15 * * 0-6
  6. jobs:
  7. deploy:
  8. runs-on: ubuntu-22.04
  9. steps:
  10. - name: Checkout πŸ›ŽοΈ
  11. uses: actions/checkout@v4
  12. - name: Generate Sponsors πŸ’–
  13. uses: JamesIves/github-sponsors-readme-action@v1
  14. with:
  15. organization: true
  16. minimum: 4900
  17. maximum: 5100
  18. fallback: 'No bronze sponsors yet. <a href="https://github.com/sponsors/serversideup">Become a sponsor β†’</a>'
  19. token: ${{ secrets.SPONSORS_README_ACTION_PERSONAL_ACCESS_TOKEN }}
  20. marker: 'bronze'
  21. template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="40px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
  22. file: 'README.md'
  23. - name: Generate Sponsors πŸ’–
  24. uses: JamesIves/github-sponsors-readme-action@v1
  25. with:
  26. organization: true
  27. maximum: 500
  28. fallback: '<p align="center"><a href="https://github.com/sponsors/serversideup"><img src="https://521public.s3.amazonaws.com/serversideup/sponsors/sponsor-empty-state.png" alt="Sponsors"></a></p>'
  29. token: ${{ secrets.SPONSORS_README_ACTION_PERSONAL_ACCESS_TOKEN }}
  30. marker: 'supporters'
  31. template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="40px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
  32. file: 'README.md'
  33. - name: Deploy to GitHub Pages πŸš€
  34. uses: JamesIves/github-pages-deploy-action@v4
  35. with:
  36. branch: main
  37. folder: '.'