-
-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (34 loc) · 1.13 KB
/
sync.yml
File metadata and controls
42 lines (34 loc) · 1.13 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
name: Synchronize Project
on:
push:
branches: [ main, dev ]
jobs:
build_and_crowdin:
strategy:
matrix:
java: [ 21 ]
os: [ ubuntu-latest ]
name: Build the project (Java ${{ matrix.java }}, on ${{ matrix.os }})) and upload translations to Crowdin
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Make Gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Generate data files
run: ./gradlew runDatagen
- name: Upload translations source file to Crowdin
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_translations: false
download_translations: false
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}