diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml index 64e7357..bb18568 100644 --- a/.github/workflows/vhs.yml +++ b/.github/workflows/vhs.yml @@ -11,27 +11,29 @@ on: paths: - "**/*.tape" -defaults: - run: - working-directory: ./examples/deeper - jobs: vhs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Install Go uses: actions/setup-go@v5 with: go-version: 1.21.6 - - uses: charmbracelet/vhs-action@v2 + + - name: Create demo GIF + uses: charmbracelet/vhs-action@v2 env: TERM: xterm-256color with: path: "./examples/deeper/demo.tape" + - name: Move demo.gif to examples/deeper - run: mv demo.gif ./examples/deeper/demo.gif - - uses: stefanzweifel/git-auto-commit-action@v4 + run: mv ./demo.gif ./examples/deeper/demo.gif + + - name: Commit and push demo.gif + uses: stefanzweifel/git-auto-commit-action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/examples/deeper/demo.tape b/examples/deeper/demo.tape index 9e85a15..06b5a08 100644 --- a/examples/deeper/demo.tape +++ b/examples/deeper/demo.tape @@ -39,3 +39,4 @@ Sleep 2s Enter Sleep 4s +