Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
48944608
Unverified
Commit
48944608
authored
Jun 16, 2023
by
Zach Pomerantz
Committed by
GitHub
Jun 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: download translations when pushing to staging (#6780)
* build: pin crowdin action * build: download t9n to staging
parent
f3889e32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
7 deletions
+32
-7
1-main-to-staging.yml
.github/workflows/1-main-to-staging.yml
+30
-5
crowdin-sync.yaml
.github/workflows/crowdin-sync.yaml
+1
-1
crowdin.yaml
.github/workflows/crowdin.yaml
+1
-1
No files found.
.github/workflows/1-main-to-staging.yml
View file @
48944608
...
...
@@ -18,15 +18,40 @@ jobs:
with
:
token
:
${{ secrets.RELEASE_SERVICE_ACCESS_TOKEN }}
ref
:
main
# The source file must exist for the corresponding translation messages to be downloaded.
-
run
:
touch src/locales/en-US.po
-
name
:
Download translations
uses
:
crowdin/github-action@3133cc916c35590475cf6705f482fb653d8e36e9
with
:
upload_sources
:
false
download_translations
:
true
project_id
:
458284
token
:
${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
source
:
'
src/locales/en-US.po'
translation
:
'
src/locales/%locale%.po'
localization_branch_name
:
main
create_pull_request
:
false
push_translations
:
false
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Git config
run
:
|
git config user.name "UL Service Account"
git config user.email "hello-happy-puppy@users.noreply.github.com"
-
name
:
Add CODEOWNERS file
git config user.name 'UL Service Account'
git config user.email 'hello-happy-puppy@users.noreply.github.com'
-
name
:
Add translations
run
:
|
echo "@uniswap/web-admins" > CODEOWNERS
git add src/locales/*.po
git commit -m 'ci(t9n): download translations from crowdin'
-
name
:
Add CODEOWNERS
run
:
|
echo '@uniswap/web-admins' > CODEOWNERS
git add CODEOWNERS
git commit -m "ci: add global CODEOWNERS"
git commit -m 'ci: add global CODEOWNERS'
-
name
:
Git push
run
:
|
git push origin main:releases/staging --force
.github/workflows/crowdin-sync.yaml
View file @
48944608
...
...
@@ -17,7 +17,7 @@ jobs:
-
run
:
yarn i18n:extract
-
name
:
Download Crowdin translations
uses
:
crowdin/github-action@
1.4.
9
uses
:
crowdin/github-action@
3133cc916c35590475cf6705f482fb653d8e36e
9
with
:
upload_sources
:
false
download_translations
:
true
...
...
.github/workflows/crowdin.yaml
View file @
48944608
...
...
@@ -14,7 +14,7 @@ jobs:
-
run
:
yarn i18n:extract
-
name
:
Upload Crowdin sources
uses
:
crowdin/github-action@
1.1.0
uses
:
crowdin/github-action@
3133cc916c35590475cf6705f482fb653d8e36e9
with
:
upload_sources
:
true
download_translations
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment