Skip to content

Commit c878fff

Browse files
committed
chore: enhance VHS GIF generation workflow
## Summary Updated the GitHub Actions workflow for generating VHS demo GIFs. Introduced a dedicated step for setting up Go and streamlined the GIF generation process by executing multiple VHS commands in sequence. ## Changes - Added a step to set up Go version 1.25.1. - Replaced multiple `charmbracelet/vhs-action` usages with a single run command to generate GIFs from all tape files. - Ensured the GIF generation step is skipped for dependabot commits.
1 parent d674853 commit c878fff

1 file changed

Lines changed: 19 additions & 28 deletions

File tree

.github/workflows/generate-terminal-gifs.yaml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,28 @@ jobs:
3232
with:
3333
python-version: '3.x'
3434

35-
- uses: charmbracelet/vhs-action@v2
35+
- name: 🚀 Setup Go
36+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
3637
with:
37-
path: 'docs/vhs/install.tape'
38+
go-version: '1.25.1'
3839

39-
- uses: charmbracelet/vhs-action@v2
40-
with:
41-
path: 'docs/vhs/basic-usage.tape'
42-
43-
- uses: charmbracelet/vhs-action@v2
44-
with:
45-
path: 'docs/vhs/yaml-config.tape'
46-
47-
- uses: charmbracelet/vhs-action@v2
48-
with:
49-
path: 'docs/vhs/mappings-demo.tape'
50-
51-
- uses: charmbracelet/vhs-action@v2
52-
with:
53-
path: 'docs/vhs/multiple-mappings.tape'
54-
55-
- uses: charmbracelet/vhs-action@v2
56-
with:
57-
path: 'docs/vhs/advanced-features.tape'
40+
- name: 🧪 Generate the gif with vhs
41+
if: github.actor != 'dependabot[bot]'
42+
run: |
43+
sudo apt update
44+
sudo apt install -y ffmpeg ttyd
45+
go install github.com/charmbracelet/vhs@latest
5846
59-
- uses: charmbracelet/vhs-action@v2
60-
with:
61-
path: 'docs/vhs/remote-content.tape'
62-
63-
- uses: charmbracelet/vhs-action@v2
64-
with:
65-
path: 'docs/vhs/schema-generation.tape'
47+
cd docs/vhs
48+
vhs install.tape
49+
vhs basic-usage.tape
50+
vhs yaml-config.tape
51+
vhs mappings-demo.tape
52+
vhs multiple-mappings.tape
53+
vhs advanced-features.tape
54+
vhs remote-content.tape
55+
vhs schema-generation.tape
56+
cd ..
6657
6758
- name: Create Pull Request
6859
uses: peter-evans/create-pull-request@v8

0 commit comments

Comments
 (0)