Skip to content

Commit 8ac9e72

Browse files
Create main.yml
1 parent 249a9d5 commit 8ac9e72

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: generate snake.svg
19+
uses: Platane/snk/svg-only@v2
20+
with:
21+
github_user_name: ${{ github.repository_owner }}
22+
outputs: dist/snake.svg
23+
24+
25+
- name: push snake.svg to the output branch
26+
uses: crazy-max/ghaction-github-pages@v2.6.0
27+
with:
28+
target_branch: output
29+
build_dir: dist
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)