diff --git a/.github/workflows/update-README.yml b/.github/workflows/update-README.yml new file mode 100644 index 0000000..c05b8bd --- /dev/null +++ b/.github/workflows/update-README.yml @@ -0,0 +1,33 @@ +name: Update README gifs + +on: + workflow_dispatch: + +permissions: + contents: write +jobs: + vhs: + runs-on: ubuntu-latest + steps: + - name: Load secrets from 1Password + uses: 1Password/load-secrets-action@v1.3.1 + id: OPassword-credentials + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_GHACTIONS_SA_TOKEN }} + GITHUB_TOKEN: op://gh/vhs-actions/credential + - uses: actions/checkout@v3 + - uses: charmbracelet/vhs-action@v1 + with: + path: 'src/docs/example.tape' + - uses: stefanzweifel/git-auto-commit-action@v4 + env: + GITHUB_TOKEN: ${{ steps.OPassword-credentials.outputs.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 📼 + file_pattern: '*.gif' \ No newline at end of file diff --git a/README.md b/README.md index fb420c4..1a20ec8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Microfetch is an improved version of neofetch written with [micronaut] and built with [graalvm]. -![WindowsTerminal_CdOxKQxCBf.gif](src/docs/WindowsTerminal_CdOxKQxCBf.gif) +![example](src/docs/example.gif) ### Install diff --git a/src/docs/WindowsTerminal_CdOxKQxCBf.gif b/src/docs/example.gif similarity index 100% rename from src/docs/WindowsTerminal_CdOxKQxCBf.gif rename to src/docs/example.gif diff --git a/src/docs/example.tape b/src/docs/example.tape new file mode 100644 index 0000000..05f2c2d --- /dev/null +++ b/src/docs/example.tape @@ -0,0 +1,12 @@ + +Output example.gif + +Require microfetch + +Set FontSize 16 +Set Width 350 +Set Height 550 + +Type "microfetch" Sleep 500ms Enter + +Sleep 5s