-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 855 Bytes
/
demo.yml
File metadata and controls
37 lines (31 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Generate Demo GIF
on:
push:
paths:
- 'demo.tape'
- 'quick-agent'
branches: [main]
workflow_dispatch:
jobs:
generate:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install quick-agent
run: |
cp quick-agent /usr/local/bin/quick-agent
chmod +x /usr/local/bin/quick-agent
- name: Install VHS
run: brew install vhs
- name: Generate GIF
run: |
mkdir -p assets
vhs demo.tape
- name: Commit GIF
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add assets/demo.gif
git diff --staged --quiet && echo "No changes" && exit 0
git commit -m "Update demo GIF"
git push