File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,15 @@ jobs:
6060 echo ".cache.json" >> dist/.gitignore
6161
6262 - name : Update
63- run : npm run build
6463 env :
65- CONTRIBKIT_CROWDIN_PROJECT_ID : 606145
6664 CONTRIBKIT_GITHUB_TYPE : organization
65+ run : npm run build
6766
6867 - name : Upload artifacts
6968 if : github.event_name == 'pull_request'
7069 uses : actions/upload-artifact@v4
7170 with :
72- name : sponsors
71+ name : dist
7372 path : dist
7473 if-no-files-found : ' error'
7574
8382 branch : dist
8483 directory : dist
8584 force : false
86- message : " chore: update sponsors "
85+ message : " chore: update contributors "
Original file line number Diff line number Diff line change 44 " Sunshine"
55)
66
7+ crowdin_projects=(
8+ 606145
9+ 614257
10+ )
11+
712output_dir=" $( pwd) /dist"
813
914echo " Building sponsors..."
@@ -16,18 +21,20 @@ popd || exit 1
1621
1722echo " Building GitHub contributors..."
1823pushd configs/github || exit 1
19-
2024for repo in " ${repos[@]} " ; do
2125 echo " Building GitHub contributors for ${repo} ..."
2226 export CONTRIBKIT_GITHUB_CONTRIBUTORS_REPO=" ${repo} "
2327 npx contribkit --outputDir=" ${output_dir} " -w=800 --name=" github.${repo} " --force
2428done
25-
2629popd || exit 1
2730
2831echo " Building CrowdIn contributors..."
2932pushd configs/crowdin || exit 1
30- npx contribkit --outputDir=" ${output_dir} " -w=800 --name=crowdin --force
33+ for project in " ${crowdin_projects[@]} " ; do
34+ echo " Building CrowdIn contributors for project ${project} ..."
35+ export CONTRIBKIT_CROWDIN_PROJECT_ID=" ${project} "
36+ npx contribkit --outputDir=" ${output_dir} " -w=800 --name=" crowdin.${project} " --force
37+ done
3138popd || exit 1
3239
3340echo " Done!"
You can’t perform that action at this time.
0 commit comments