-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: upload string catalog directly to Crowdin
- Loading branch information
1 parent
09bba29
commit 2fbe1ca
Showing
2 changed files
with
7 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,37 +19,34 @@ jobs: | |
- 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 | ||
- name: Upload string catalog | ||
uses: actions/[email protected] | ||
with: | ||
name: en-source-locale | ||
path: './locale/en.xcloc/Localized Contents/en.xliff' | ||
name: string-catalog | ||
path: "./Front Row/Localizable.xcstrings" | ||
|
||
crowdin: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
name: en-source-locale | ||
name: string-catalog | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload source to Crowdin | ||
- name: Upload string catalog to Crowdin | ||
uses: crowdin/[email protected] | ||
with: | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: false | ||
|
||
source: en.xliff | ||
translation: '%osx_locale%.xliff' | ||
source: Localizable.xcstrings | ||
translation: "%osx_locale%.xcstrings" | ||
|
||
project_id: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters