Skip to content

Commit

Permalink
ci: upload string catalog directly to Crowdin
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion committed Mar 19, 2024
1 parent 09bba29 commit e770908
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,23 @@ 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
uses: actions/upload-artifact@v4.3.1
with:
name: en-source-locale
path: './locale/en.xcloc/Localized Contents/en.xliff'

crowdin:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4.1.4
with:
name: en-source-locale
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload source to Crowdin
uses: crowdin/github-action@v1.19.0
with:
upload_sources: true
upload_translations: false
download_translations: false

source: en.xliff
translation: '%osx_locale%.xliff'
source: "./Front Row/Localizable.xcstrings"
translation: "%osx_locale%.xcstrings"

project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 comments on commit e770908

Please sign in to comment.