-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (48 loc) · 1.4 KB
/
crowdin-extract.yml
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
54
55
56
name: Crowdin Extract
on:
workflow_dispatch:
push:
schedule:
- cron: '30 */2 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['7.4']
steps:
- uses: actions/checkout@v4
- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2
- name: Install dependencies
run: composer install --no-progress
- name: Generate configuration
env:
CROWDIN_ACCESS_TOKEN: ${{ secrets.CROWDIN_ACCESS_TOKEN }}
run: |
php app.php setup
- name: Extract translations
env:
CROWDIN_ACCESS_TOKEN: ${{ secrets.CROWDIN_ACCESS_TOKEN }}
run: |
php app.php meta:extractExtensions
php app.php extract:core
- name: Extract status
env:
CROWDIN_ACCESS_TOKEN: ${{ secrets.CROWDIN_ACCESS_TOKEN }}
run: |
php app.php meta:status.export
php app.php management:status
- name: Copy files to translation server
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SCP_HOST }}
username: ${{ secrets.SCP_USERNAME }}
port: ${{ secrets.SCP_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "export/rsync"
target: "/home/localize/www/export_v2/"