Set up VHS Action in GitHub Actions
mainTo automate GIF generation using VHS in your GitHub workflows, follow these steps:
- Create a workflow file at
.github/workflows/vhs.ymlin your project. - Configure the workflow using one of the provided examples (e.g., auto-committing the GIF or commenting it on a Pull Request).
- Create
.tapefiles in your repository containing the VHS instructions for the demo you want to record. - Trigger the action by making a commit or opening a pull request, depending on your workflow configuration.
Whenever the action is triggered, VHS will regenerate the GIF from your .tape files on CI.
# Example workflow structure
name: VHS
on: [push]
jobs:
vhs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: charmbracelet/vhs-action@v2
with:
path: demo.tape