- Notifications
You must be signed in to change notification settings - Fork0
Generate Snake#4948
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 Snake | |
| on: | |
| schedule: | |
| -cron:"0 */1 * * *"# every 12 hours | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| -main# or master, depending on your default branch | |
| jobs: | |
| build: | |
| runs-on:ubuntu-latest | |
| permissions: | |
| contents:write | |
| steps: | |
| -uses:actions/checkout@v3 | |
| -uses:Platane/snk@v3 | |
| id:snake-gif | |
| with: | |
| github_user_name:coderomm | |
| outputs:| | |
| dist/github-contribution-grid-snake.svg | |
| dist/github-contribution-grid-snake-dark.svg?palette=github-dark | |
| -name:Push to GitHub Pages | |
| uses:crazy-max/ghaction-github-pages@v3.1.0 | |
| with: | |
| target_branch:output | |
| build_dir:dist | |
| env: | |
| GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }} |