Generate Sponsors README #24
This file contains 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
name: Generate Sponsors README | |
on: | |
workflow_dispatch: | |
schedule: | |
# This is a cron schedule, it will run every day at 15:30. You can change this to whatever you want.x | |
- cron: 0 */8 * * * | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
# Generate the sponsors | |
- name: Generate Sponsors 💖 | |
uses: JamesIves/github-sponsors-readme-action@v1 | |
with: | |
# The name of this should correspond with the name you gave your secret, in my example this is 'PAT'. | |
token: ${{ secrets.PATO }} | |
# This should point to your project's readme, or any other type of markdown file you want to add sponsorship information to. | |
file: 'README.md' | |
minimum: 500 | |
marker: gold | |
# Deploy the changes back to the main branch of the repository | |
- name: Deploy to GitHub Pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
# Typically this should be the name of the base branch, in many cases this is 'main'. | |
branch: main | |
# As we're deploying changes to our markdown files, this needs to be . to push the root directory back to the repository. | |
folder: '.' |