Skip to content

Commit bfa9dac

Browse files
feat(crowdin)!: add docs project (#13)
1 parent a2e6545 commit bfa9dac

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/scheduler.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

@@ -83,4 +82,4 @@ jobs:
8382
branch: dist
8483
directory: dist
8584
force: false
86-
message: "chore: update sponsors"
85+
message: "chore: update contributors"

build.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ repos=(
44
"Sunshine"
55
)
66

7+
crowdin_projects=(
8+
606145
9+
614257
10+
)
11+
712
output_dir="$(pwd)/dist"
813

914
echo "Building sponsors..."
@@ -16,18 +21,20 @@ popd || exit 1
1621

1722
echo "Building GitHub contributors..."
1823
pushd configs/github || exit 1
19-
2024
for 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
2428
done
25-
2629
popd || exit 1
2730

2831
echo "Building CrowdIn contributors..."
2932
pushd 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
3138
popd || exit 1
3239

3340
echo "Done!"

0 commit comments

Comments
 (0)