Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Demo

on:
push:
branches: [main]
paths:
- 'demo.tape'
- 'cmd/**'
- 'internal/**'
- 'pkg/**'
- 'scripts/gen_demo_certs.go'
- '.github/workflows/demo.yml'

permissions:
contents: write

concurrency:
group: demo-${{ github.ref }}
cancel-in-progress: true

jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Render demo.gif
uses: charmbracelet/vhs-action@v2
with:
path: demo.tape

- name: Commit and push if demo.gif changed
run: |
if git diff --quiet -- demo.gif; then
echo "demo.gif unchanged, nothing to commit"
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add demo.gif
git commit -m "chore(demo): refresh demo.gif"
git push
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Test
on:
push:
branches: [ main ]
paths-ignore:
- 'demo.gif'
- 'README.md'
pull_request:
branches: [ main ]

Expand All @@ -16,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25.6'
go-version-file: go.mod

- name: Download dependencies
run: go mod download
Expand Down
Loading