developtheweb/.github/workflows/snake.yml
developtheweb@protonmail.com fd881fe2e4 Fix README formatting and add snake animation workflow
- Convert all HTML anchor tags with images to markdown syntax
- Add GitHub Action workflow for snake animation
- Update snake animation to use proper light/dark mode
- Fix broken badge display issues
2025-07-23 14:53:27 -04:00

33 lines
No EOL
716 B
YAML

name: Generate Snake
on:
schedule:
# Runs every 12 hours
- cron: "0 */12 * * *"
workflow_dispatch:
push:
branches:
- main
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Generate Snake
uses: Platane/snk/svg-only@v3
with:
github_user_name: developtheweb
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
- name: Push to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}