0797041643
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
name: 📼 VHS
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'docs/tapes/*.tape'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
vhs:
|
|
name: Create VHS
|
|
runs-on: macos-latest
|
|
if: ${{ github.repository == 'wxt-dev/wxt' }}
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
ref: ${{ github.ref_name }}
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6
|
|
|
|
- name: Setup NodeJS
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
cache: pnpm
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
|
|
with:
|
|
go-version: '1.25.1'
|
|
|
|
# This prevents pnpm dlx from downloading WXT in the video
|
|
- name: Pre-install WXT
|
|
run: |
|
|
pnpm store add wxt@latest
|
|
pnpm dlx wxt@latest --version
|
|
|
|
- name: Record VHS
|
|
run: |
|
|
brew install ttyd ffmpeg
|
|
go install github.com/charmbracelet/vhs@517bcda0faf416728bcf6b7fe489eb0e2469d9b5 # v0.10.0
|
|
vhs docs/tapes/init-demo.tape
|
|
|
|
- name: Save recorded GIF
|
|
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
commit_message: 'docs: Update `wxt init` GIF'
|
|
commit_user_name: github-actions[bot]
|
|
commit_user_email: github-actions[bot]@users.noreply.github.com
|
|
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
|
# https://github.com/charmbracelet/vhs#output
|
|
file_pattern: 'docs/assets/*.gif'
|