summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-23 22:50:32 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-11-23 22:50:32 -0500
commit9da4d8dc30006c6f7f1a59dfe0c88d73d82df47a (patch)
treee3811510420da2683027b95d77db0b49671c2499 /.github/workflows
parenta5fafbb355d40f584e3ffc694cfd1def2fd3c21e (diff)
Second attempt with official vhs actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/go.yml17
-rw-r--r--.github/workflows/vhs.yml26
2 files changed, 4 insertions, 39 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index f5952fb..9db1f78 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -22,19 +22,10 @@ jobs:
run: go build -o ./termpicker -v ./cmd/termpicker
- name: Test
run: go test -v ./...
- - name: Install VHS dependencies
- run: |
- sudo apt update
- sudo apt install -y ffmpeg zsh
- wget https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64
- sudo chmod +x ttyd.x86_64
- sudo mv ttyd.x86_64 /usr/local/bin/ttyd
- - name: Install VHS
- run: |
- wget https://github.com/charmbracelet/vhs/releases/download/v0.8.0/vhs_0.8.0_amd64.deb
- sudo dpkg -i vhs_0.8.0_amd64.deb
- - name: Generate Demo GIF
- run: vhs ./assets/demo.tape
+ - name: VHS Gif update
+ uses: charmbracelet/vhs-action@v1
+ with:
+ path: assets/demo.tape
- name: Commit and push updated GIF demo
run: |-
git config --global user.name 'github-actions'
diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml
deleted file mode 100644
index 41d2b79..0000000
--- a/.github/workflows/vhs.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-name: vhs
-on:
- push:
- branches: [master]
- pull_request:
- branches: [master]
-permissions:
- contents: write
-jobs:
- vhs:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: charmbracelet/vhs-action@v1
- with:
- path: 'assets/demo.tape'
- - uses: stefanzweifel/git-auto-commit-action@v4
- 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'