Skip to content

Commit

Permalink
feat: Generate artifacts from VHS and commit back
Browse files Browse the repository at this point in the history
  • Loading branch information
PossibleLlama authored and wllfaria committed Aug 5, 2024
1 parent 96d1251 commit 25d60e0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/vhs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: vhs
on:
push:
paths:
- extra/tapes/*.tape

jobs:
artifact-vhs:
name: "Create VHS artifact"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: charmbracelet/vhs-action@v2

- name: Create artifact
run: extra/tapes/run_all.sh

- name: Commit back changes
run: |
git add extra/*.gif
git config --global user.name "vhs-action"
git config --global user.email "[email protected]"
git commit -m "Updated vhs [skip ci]" || true
git push

0 comments on commit 25d60e0

Please sign in to comment.