-
-
Notifications
You must be signed in to change notification settings - Fork 3k
47 lines (45 loc) · 1.19 KB
/
docs-screenshots.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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