Create main.yml

This commit is contained in:
2026-10-02 12:53:13 +03:00
committed by GitHub
parent 5e742e07f3
commit fc0866fa55
+30
View File
@@ -0,0 +1,30 @@
name: Generate Contribution Snake
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Generate snake
uses: Platane/snk@v3.5.0
with:
github_user_name: excho0
outputs: |
dist/github-contribution-grid-snake.svg
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
- name: Push snake to output branch
uses: crazy-max/ghaction-github-pages@v4
with:
build_dir: dist
branch: output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}