Skip to content

Commit

Permalink
Add simple demo to vhs automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Miller committed Feb 22, 2024
1 parent aeaa4da commit 1dee05c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/vhs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,28 @@ jobs:
go-version: 1.22.0

- name: Build Examples
run: go build -o ./bin/deeper ./examples/deeper/*.go
run: go build -o ./bin/deeper ./examples/deeper/*.go && go build -o ./bin/simple ./examples/simple/*.go

- name: Create demo GIF
- name: Create deeper demo GIF
uses: charmbracelet/vhs-action@v2
env:
TERM: xterm-256color
with:
path: ./examples/deeper/demo.tape

- name: Move demo GIF to examples/deeper; cleanup
run: mv demo.gif examples/deeper/demo.gif && rm -rf ./bin

- name: Move deeper demo GIF to examples/deeper
run: mv demo.gif examples/deeper/demo.gif

- name: Create simple demo GIF
uses: charmbracelet/vhs-action@v2
env:
TERM: xterm-256color
with:
path: ./examples/simple/demo.tape

- name: Move deeper demo GIF to examples/simple
run: mv demo.gif examples/simple/demo.gif

- name: Commit and push demo.gif
uses: stefanzweifel/git-auto-commit-action@v4
env:
Expand Down

0 comments on commit 1dee05c

Please sign in to comment.