mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Merge pull request #745 from jeevithakannan2/main
refact: vhs github action
This commit is contained in:
commit
e31eccd38d
21
.github/workflows/linutil.yml
vendored
21
.github/workflows/linutil.yml
vendored
|
@ -89,22 +89,23 @@ jobs:
|
||||||
version: ${{ env.version }}
|
version: ${{ env.version }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Install vhs
|
- name: Setup Preview
|
||||||
run: |
|
run: |
|
||||||
wget 'https://github.com/charmbracelet/vhs/releases/download/v0.8.0/vhs_0.8.0_amd64.deb'
|
echo "$(pwd)/build" >> $GITHUB_PATH
|
||||||
sudo apt install -y ffmpeg
|
|
||||||
sudo snap install ttyd --classic
|
- name: Generate preview
|
||||||
sudo dpkg -i 'vhs_0.8.0_amd64.deb'
|
uses: charmbracelet/vhs-action@v2.1.0
|
||||||
|
with:
|
||||||
|
path: "docs/assets/preview.tape"
|
||||||
|
|
||||||
- name: Build the preview
|
- name: Move preview
|
||||||
run: |
|
run: |
|
||||||
export PATH="$(pwd)/build:$PATH"
|
mv preview.gif docs/assets/preview.gif
|
||||||
vhs docs/assets/preview.tape -o docs/assets/preview.gif
|
|
||||||
|
|
||||||
- name: Upload the preview
|
- name: Upload preview
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: Preview for ${{ env.version }}
|
commit_message: Preview for ${{ env.version }}
|
||||||
file_pattern: "docs/assets/preview.gif"
|
file_pattern: "docs/assets/preview.gif"
|
||||||
add_options: "--force"
|
add_options: "--force"
|
||||||
if: success()
|
if: success()
|
|
@ -61,13 +61,14 @@ Require linutil
|
||||||
Require sh
|
Require sh
|
||||||
|
|
||||||
Set Shell "bash"
|
Set Shell "bash"
|
||||||
Set FontSize 32
|
Set FontFamily "JetBrainsMono Nerd Font"
|
||||||
Set Width 3200
|
Set FontSize 24
|
||||||
Set Height 1800
|
Set Width 1920
|
||||||
|
Set Height 1080
|
||||||
|
|
||||||
Sleep 1s
|
Sleep 1s
|
||||||
|
|
||||||
Type "linutil -t compatible" Sleep 1s Enter
|
Type "linutil" Sleep 1s Enter
|
||||||
|
|
||||||
Sleep 5s
|
Sleep 5s
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user