generate github-contribution-grid-snake #133
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
| name: generate github-contribution-grid-snake | |
| on: | |
| # trigger the workflow on push or every day at midnight | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: generate snake.svg | |
| uses: Platane/snk@v3 | |
| with: | |
| github_user_name: ${{ github.repository_owner }} | |
| outputs: | | |
| dist/github-contribution-grid-snake.svg | |
| - name: push github-contribution-grid-snake.svg to the output branch | |
| uses: crazy-max/ghaction-github-pages@v3 | |
| with: | |
| target_branch: output | |
| build_dir: dist | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |