Skip to content

Commit 428a88b

Browse files
authored
Create snake.yml
1 parent b344ff7 commit 428a88b

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎.github/workflows/snake.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
name: Generate Contribution Snake
3+
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
generate:
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- name: Generate Snake Animation
22+
uses: Platane/snk/svg-only@v3
23+
with:
24+
github_user_name: coderay3000
25+
outputs: |
26+
dist/github-contribution-grid-snake.svg
27+
28+
- name: Publish Snake to Output Branch
29+
uses: crazy-max/ghaction-github-pages@v4
30+
with:
31+
target_branch: output
32+
build_dir: dist
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)