-
Notifications
You must be signed in to change notification settings - Fork 214
59 lines (53 loc) · 2.15 KB
/
generate-viewhelper-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Flux ViewHelper Documentation
on:
workflow_dispatch:
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Setup PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Checkout flux project
uses: actions/checkout@v3
with:
path: flux
fetch-depth: 1
persist-credentials: false
- name: Checkout Fluid Documentation Generator
uses: actions/checkout@v3
if: ${{ contains(github.event.head_commit.message, '[TASK] Update XSD schema') }}
with:
repository: 'TYPO3-Documentation/fluid-documentation-generator'
fetch-depth: 0
ref: '3.0.0'
path: generator
- name: Generate ViewHelper RST documentation
if: ${{ contains(github.event.head_commit.message, '[TASK] Update XSD schema') }}
working-directory: ./generator
run: |
echo "${{steps.set_changedfile.outputs.changedfile}}"
composer install --no-dev -n -o --no-progress
mkdir -p schemas/fluidtypo3/flux/development/
cp -r ../flux/Resources/Private/Schemas/Flux.xsd schemas/fluidtypo3/flux/development/schema.xsd
./bin/generate-fluid-documentation
find public/fluidtypo3/flux/development -type f -name '*.xsd' -delete
find public/fluidtypo3/flux/development -type f -name '*.json' -delete
find public/fluidtypo3/flux/development -type f -name '*.html' -delete
cp -r public/fluidtypo3/flux/development/* ../flux/Documentation/ViewHelpers/
- name: Commit and push
if: ${{ contains(github.event.head_commit.message, '[TASK] Update XSD schema') }}
working-directory: ./flux
continue-on-error: true
run: |
git config user.name "FluidTYPO3 Flux"
git config user.email "claus@namelesscoder.net"
git add ./Documentation/ViewHelpers/*
git commit -m '[TASK] Regenerate ViewHelper documentation'
git push https://${{ secrets.EXEMPT_PUSH_TOKEN }}@github.com/FluidTYPO3/flux HEAD:development