Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: release-automated
on:
push:
branches: [ master, release, alpha, beta ]
env:
NODE_VERSION: 18
PHP_VERSION: 8.1
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
- run: npm ci
- run: npx semantic-release
env:
Expand All @@ -22,32 +25,30 @@ jobs:
- name: Determine tag on current commit
id: tag
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
publish-docs:
docs-publish:
needs: release
if: needs.release.outputs.current_tag != ''
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
ref: ${{ needs.release.outputs.current_tag }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache Node.js modules
uses: actions/cache@v3
node-version: ${{ env.NODE_VERSION }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
php-version: ${{ env.PHP_VERSION }}
- name: Generate Docs
run: |
npm ci
composer install
npm run document-check
npm run documentation
npm run document
env:
SOURCE_TAG: ${{ github.event.inputs.tag }}
SOURCE_TAG: ${{ needs.release.outputs.current_tag }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.7.3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-manual-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
default: ''
description: 'Version tag:'
env:
NODE_VERSION: 16.17.1
NODE_VERSION: 18
PHP_VERSION: 8.1
jobs:
docs-publish:
if: github.event.inputs.tag != ''
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
Expand Down