diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml new file mode 100644 index 0000000..8b9d3a1 --- /dev/null +++ b/.github/workflows/screenshots.yml @@ -0,0 +1,33 @@ +name: Docs screenshots +on: + workflow_dispatch: + pull_request: + +jobs: + rich_codex: + runs-on: ubuntu-latest + steps: + - name: Check out DSO code + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pip" + + - name: Install DSO + run: pip install . + + - name: Generate terminal images with rich-codex + uses: ewels/rich-codex@v1 + with: + clean_img_paths: docs/images/screenshots/*.svg + commit_changes: false + skip_git_checks: true + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Rich codex + file_pattern: "docs/*.png"