Skip to content

Commit b93c09f

Browse files
authored
Create snake.yml
1 parent 3811beb commit b93c09f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

snake.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Generate snake animation
2+
3+
on:
4+
schedule: # execute every 12 hours
5+
- cron: "* */12 * * *"
6+
7+
workflow_dispatch:
8+
9+
push:
10+
branches:
11+
- master
12+
13+
jobs:
14+
generate:
15+
permissions:
16+
contents: write
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 5
19+
20+
steps:
21+
- name: generate snake.svg
22+
uses: Platane/snk/svg-only@v3
23+
with:
24+
github_user_name: ${{ github.repository_owner }}
25+
outputs: dist/snake.svg?palette=github-dark
26+
27+
28+
- name: push snake.svg to the output branch
29+
uses: crazy-max/ghaction-github-pages@v3.1.0
30+
with:
31+
target_branch: output
32+
build_dir: dist
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)