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
This commit is contained in:
parent
e1124353ae
commit
fd881fe2e4
3 changed files with 81 additions and 52 deletions
33
.github/workflows/snake.yml
vendored
Normal file
33
.github/workflows/snake.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue