diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/vhs.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml new file mode 100644 index 0000000..99815f0 --- /dev/null +++ b/.github/workflows/vhs.yml @@ -0,0 +1,37 @@ +--- +name: vhs +on: + push: + branches: [master] + pull_request: + branches: [master] + workflow_dispatch: +permissions: + contents: write +jobs: + vhs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Build + run: | + sudo go build -o /usr/local/bin/termpicker ./cmd/termpicker + - uses: charmbracelet/vhs-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path: vhs.tape + - uses: stefanzweifel/git-auto-commit-action@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + commit_message: Update generated VHS GIF + branch: main + commit_user_name: vhs-action 📼 + commit_user_email: actions@github.com + commit_author: vhs-action 📼 <actions@github.com> + file_pattern: '*.gif' |