-
-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,4 @@ | ||
Output cli/assets/boa_cli.gif | ||
|
||
# Setup env | ||
Hide | ||
|
||
Set TypingSpeed 50ms | ||
Set Theme "GruvboxDark" | ||
Set Shell fish | ||
|
||
# boa_cli needs to be installed for the tape to run. | ||
Require boa | ||
|
||
Show | ||
|
||
Type "boa" | ||
|
||
Sleep 100ms | ||
|
||
Enter | ||
|
||
Type "2 + '2'" | ||
|
||
Enter | ||
|
||
Sleep 100ms | ||
|
||
Type "const sayHello = () => { return 'Hello World!' };" | ||
|
||
Enter | ||
|
||
Sleep 100ms | ||
|
||
Type "sayHello();" | ||
|
||
Enter | ||
|
||
Sleep 2s | ||
# The below path assumes that we are calling from Boa's root. | ||
Source ./.github/tapes/boa_cli_src.tape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# The source tape file for creating the CLI intro GIF | ||
|
||
# Setup env | ||
Hide | ||
|
||
Set TypingSpeed 50ms | ||
Set Theme "GruvboxDark" | ||
Set Shell fish | ||
|
||
# boa_cli needs to be installed for the tape to run. | ||
Require boa | ||
|
||
Show | ||
|
||
Type "boa" | ||
|
||
Sleep 100ms | ||
|
||
Enter | ||
|
||
Type "2 + '2'" | ||
|
||
Enter | ||
|
||
Sleep 100ms | ||
|
||
Type "const sayHello = () => { return 'Hello World!' };" | ||
|
||
Enter | ||
|
||
Sleep 100ms | ||
|
||
Type "sayHello();" | ||
|
||
Enter | ||
|
||
Sleep 2s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Output tmp/boa_cli.gif | ||
|
||
# The below path assumes that we are calling from Boa's root. | ||
Source ./.github/tapes/boa_cli_src.tape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Build Artifacts | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
|
@@ -18,14 +18,11 @@ jobs: | |
# https://github.com/charmbracelet/vhs-action/blob/main/examples/auto-commit.yml | ||
- uses: charmbracelet/vhs-action@v1 | ||
with: | ||
path: './.github/tapes/boa_cli.tape' | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
version: "0.7.1" | ||
path: './.github/tapes/ci_cli_intro.tape' | ||
- uses: mfinelli/setup-imagemagick@v5 | ||
with: | ||
commit_message: Update generated VHS GIF | ||
branch: main | ||
commit_user_name: vhs-action 📼 | ||
commit_user_email: [email protected] | ||
commit_author: vhs-action 📼 <[email protected]> | ||
file_pattern: '*.gif' | ||
cache: true | ||
- run: magick compare -verbose ./tmp/boa_cli.gif ./cli/assets/boa_cli.gif | ||
# Clean up tmp directory created by ci_cli_intro.tape | ||
- run: rm -rf ./tmp |