Skip to content

Commit d72b2c4

Browse files
committed
ci: Fix manual documentation release
1 parent a83928b commit d72b2c4

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/release-manual-docs.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tag:
66
default: ''
77
description: 'Version tag:'
8+
env:
9+
NODE_VERSION: 16.17.1
10+
PHP_VERSION: 8.1
811
jobs:
912
docs-publish:
1013
if: github.event.inputs.tag != ''
@@ -17,19 +20,23 @@ jobs:
1720
- name: Use Node.js
1821
uses: actions/setup-node@v3
1922
with:
20-
node-version: 16
23+
node-version: ${{ env.NODE_VERSION }}
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ env.PHP_VERSION }}
2128
- name: Cache Node.js modules
2229
uses: actions/cache@v3
2330
with:
2431
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32+
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
2633
restore-keys: |
27-
${{ runner.os }}-node-
34+
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
2835
- name: Generate Docs
2936
run: |
30-
npm ci
37+
composer install
3138
npm run document-check
32-
npm run documentation
39+
npm run document
3340
env:
3441
SOURCE_TAG: ${{ github.event.inputs.tag }}
3542
- name: Deploy

0 commit comments

Comments
 (0)