Skip to content

Commit

Permalink
build: move crowdin upload/download to release (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmp authored Nov 19, 2022
1 parent 4d75b2b commit 8957588
Show file tree
Hide file tree
Showing 37 changed files with 17 additions and 13,756 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/crowdin-download.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/crowdin-upload.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ jobs:
- uses: ./.github/actions/setup
- run: yarn prepare

- run: yarn i18n:extract
- uses: crowdin/github-action@1.4.8
with:
upload_sources: true
download_translations: true
create_pull_request: false
push_translations: false
localization_branch_name: main
source: 'src/locales/en-US.po'
translation: 'src/locales/%locale%.po'
crowdin_branch_name: widgets
token: ${{ secrets.CROWDIN_TOKEN }}
project_id: 458284
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: yarn test
if: success()

Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

# generated locales
/src/locales/**/*.js
/src/locales/**/en-US.po
/src/locales/**/pseudo.po
/src/locales/**/*.po

# dependency management
package-lock.json
Expand Down
Loading

1 comment on commit 8957588

@vercel
Copy link

@vercel vercel bot commented on 8957588 Nov 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-uniswap.vercel.app
widgets-seven-tau.vercel.app
widgets-git-main-uniswap.vercel.app

Please sign in to comment.