forked from TYPO3-Documentation/t3docs-ci-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.81 KB
/
fluid-viewhelper.yml
File metadata and controls
53 lines (46 loc) · 1.81 KB
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
name: Fluid ViewHelper Documentation
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
core: ['main', '13.4', '12.4']
fail-fast: false
env:
TARGET_PATH: ${{ secrets.API_TARGET_PATH }}/${{ matrix.core }}
steps:
- name: Setup PHP 8.2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1
with:
php-version: '8.2'
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Create RST documentation for Core ${{ matrix.core }}
working-directory: ./Build/fluid-viewhelpers/${{ matrix.core }}
run: |
composer install --no-dev -n -o --no-progress
composer generate-documentation
cp -r fluidDocumentationOutput ../../../documentation
- name: "Checkout ViewHelper Docs: ${{ matrix.core }}"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
repository: 'TYPO3-Documentation/TYPO3CMS-Reference-ViewHelper'
path: viewhelpers
ref: ${{ matrix.core }}
token: ${{ secrets.GH_PUSH_TOKEN }}
- name: Update repository
working-directory: ./viewhelpers
continue-on-error: true
run: |
rsync -av --exclude='*.json' --ignore-existing ../documentation/ Documentation/
rsync -av --include='*.json' --exclude='*' ../documentation/ Documentation/
git checkout HEAD -- Documentation/Index.rst
git config user.name "TYPO3 Documentation Team"
git config user.email "documentation-automation@typo3.com"
git add .
git commit -m '[BOT][TASK] Only add new ViewHelper documentation files' || echo "No changes to commit"
git push