Skip to content

Commit 2a87450

Browse files
authored
Create snack.yml
1 parent 5ed6fbe commit 2a87450

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

github/workflows/snack.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy