Skip to content

Commit

Permalink
Fix font problem with vhs-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed May 10, 2024
1 parent 7be9faf commit 152ff29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/vhs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,22 @@ jobs:
- name: "make all"
run: make all

# We need to install the Hack Nerd Font for the demo
# but vhs-action will not install it for us due to issue 264
- name: Install Hack Nerd Font
run: |
curl -sSLO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Hack.zip
unzip -d hack_nerd_font Hack.zip
mv hack_nerd_font/ /usr/local/share/fonts/
fc-cache -fv || true
- uses: charmbracelet/vhs-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: demo.tape
install-fonts: true
# Cannot use `install-fonts`: https://github.com/charmbracelet/vhs-action/issues/264
# install-fonts: true
install-fonts: false

- uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit
Expand Down
15 changes: 5 additions & 10 deletions demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,16 @@ Type "geodesic" Enter

Sleep 3s

Type "# It ships with common commands like `terraform`" Enter
Type "# It ships with common commands like `jq`" Enter
Sleep 500ms

Type "terraform -help" Enter
Sleep 500ms
Type "jq" Enter
Sleep 3s

Type "# ...and the `aws` CLI =)" Enter
Type "# ...and `kubectl`" Enter
Sleep 500ms

Type "aws help" Enter

Sleep 3s

Type "q"
Sleep 1s
Type "kubectl" Enter@3s

Type "# That's all folks!" Enter
Sleep 2s
Expand Down

0 comments on commit 152ff29

Please sign in to comment.