-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (35 loc) · 1.15 KB
/
docs.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
name: Docs
on:
push:
branches:
- "main"
env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# see https://github.com/ramsey/composer-install
- uses: "ramsey/composer-install@v2"
- name: Install rule doc generator
run: composer require symplify/rule-doc-generator --with-all-dependencies
- name: Generate documentation
run: composer docs
- name: Uninstall rule doc generator
run: composer remove symplify/rule-doc-generator
- uses: stefanzweifel/[email protected]
with:
commit_message: '[DOCS] Generate documentation'
commit_options: '--no-verify --signoff'
branch: "main"
push_options: '--force'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}