-
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (46 loc) · 1.39 KB
/
ci.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
name: CI
on:
push:
branches: ["main"]
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Xcode Version
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- name: Build and Analyze
run: >
xcodebuild clean build analyze
-exportLocalizations
-project "Front Row.xcodeproj"
-scheme "Front Row"
-localizationPath "./locale"
-exportLanguage en
CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]}
- name: Upload source locale artifact
uses: actions/[email protected]
with:
name: en-source-locale
path: './locale/en.xcloc/Localized Contents/en.xliff'
crowdin:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/[email protected]
with:
name: en-source-locale
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload source to Crowdin
uses: crowdin/[email protected]
with:
upload_sources: true
upload_translations: false
download_translations: false
source: en.xliff
translation: '%osx_locale%.xliff'
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}