-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
48 lines (41 loc) · 1.02 KB
/
docs.yml
File metadata and controls
48 lines (41 loc) · 1.02 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
name: Translate docs
on:
push:
branches:
- release-*
- docs-*
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
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