Merge branch '3.x' of https://github.com/filamentphp/filament into 3.x #615
Workflow file for this run
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
name: generate-docs-screenshots | |
on: | |
push: | |
tags: '*' | |
jobs: | |
take-screenshots: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-composer-${{ hashFiles('composer.json') }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
extensions: mbstring, pdo, pdo_sqlite | |
coverage: none | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: | | |
cd docs-assets/screenshots | |
npm ci | |
- name: Setup app | |
run: | | |
cd docs-assets/app | |
composer install --no-interaction | |
npm ci && npm run build | |
php artisan serve & | |
- name: Run script | |
run: | | |
cd docs-assets/screenshots | |
node script | |
- name: Pull changes | |
run: git pull | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: > | |
chore: take docs screenshots |