Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,15 @@ jobs:
echo ".cache.json" >> dist/.gitignore

- name: Update
run: npm run build
env:
CONTRIBKIT_CROWDIN_PROJECT_ID: 606145
CONTRIBKIT_GITHUB_TYPE: organization
run: npm run build

- name: Upload artifacts
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: sponsors
name: dist
path: dist
if-no-files-found: 'error'

Expand All @@ -83,4 +82,4 @@ jobs:
branch: dist
directory: dist
force: false
message: "chore: update sponsors"
message: "chore: update contributors"
13 changes: 10 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ repos=(
"Sunshine"
)

crowdin_projects=(
606145
614257
)

output_dir="$(pwd)/dist"

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

echo "Building GitHub contributors..."
pushd configs/github || exit 1

for repo in "${repos[@]}"; do
echo "Building GitHub contributors for ${repo}..."
export CONTRIBKIT_GITHUB_CONTRIBUTORS_REPO="${repo}"
npx contribkit --outputDir="${output_dir}" -w=800 --name="github.${repo}" --force
done

popd || exit 1

echo "Building CrowdIn contributors..."
pushd configs/crowdin || exit 1
npx contribkit --outputDir="${output_dir}" -w=800 --name=crowdin --force
for project in "${crowdin_projects[@]}"; do
echo "Building CrowdIn contributors for project ${project}..."
export CONTRIBKIT_CROWDIN_PROJECT_ID="${project}"
npx contribkit --outputDir="${output_dir}" -w=800 --name="crowdin.${project}" --force
done
popd || exit 1

echo "Done!"