mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
2f30865d2f
# Conflicts: # docs/zh-cn/coroutine.md # docs/zh-hk/coroutine.md # docs/zh-tw/coroutine.md # src/model-cache/src/Manager.php
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
name: Translate docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release-*
|
|
- docs*
|
|
|
|
jobs:
|
|
translate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.0
|
|
tools: phpize
|
|
extensions: swoole, redis
|
|
ini-values: extension=opencc
|
|
|
|
- name: Install OpenCC
|
|
run: |
|
|
sudo apt-get install libopencc-dev -y
|
|
|
|
- name: Build opencc4php
|
|
run: |
|
|
git clone https://github.com/nauxliu/opencc4php.git --depth 1
|
|
cd opencc4php
|
|
phpize
|
|
./configure
|
|
make
|
|
sudo make install
|
|
php --ri opencc
|
|
cd ..
|
|
rm -rf opencc4php
|
|
|
|
- name: Start Translate
|
|
run: |
|
|
composer install
|
|
php bin/doc-translate
|
|
|
|
- name: Commit Updated
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: Update docs and translate
|