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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 0 additions & 28 deletions .github/workflows/blogs_fix_locales_all.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/blogs_remove_mismatching_locales.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/blogs_sync_seobot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ jobs:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: bun run blogs:delete_broken_all
- run: bun run blogs:fix_locales_all
- run: bun run fix_code_languages_all
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git diff --quiet && git diff --staged --quiet || git commit -m "chore: delete broken blogs, fix locales and code languages"
git diff --quiet && git diff --staged --quiet || git commit -m "chore: delete broken blogs and fix code languages"
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/blogs_translate_all.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/blogs_translate_untranslated.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
- 'apps/shared/**'
- 'apps/web/public/**'
- 'apps/web/src/config/plugins.ts'
- 'messages/**'
- 'project.inlang/**'
- 'configs.json'
- 'package.json'
- 'bun.lock'
Expand Down Expand Up @@ -69,7 +67,7 @@ jobs:
apps/docs/.astro
node_modules/.astro
node_modules/.cache
key: ${{ runner.os }}-astro-docs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/docs/**', 'apps/shared/**', 'apps/web/public/**', 'apps/web/src/config/plugins.ts', 'messages/**', 'project.inlang/**', 'configs.json') }}
key: ${{ runner.os }}-astro-docs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/docs/**', 'apps/shared/**', 'apps/web/public/**', 'apps/web/src/config/plugins.ts', 'configs.json') }}
restore-keys: |
${{ runner.os }}-astro-docs-${{ hashFiles('**/bun.lock') }}-
${{ runner.os }}-astro-docs-
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/deploy-translation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy Translation Worker

permissions:
contents: read

concurrency:
group: deploy-translation
cancel-in-progress: false

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'apps/translation-worker/**'
- 'package.json'
- 'bun.lock'

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'

jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 20
Comment thread
coderabbitai[bot] marked this conversation as resolved.
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: 1.3.11
- name: Cache bun modules
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- run: bun install --frozen-lockfile
- run: bun run ci:verify:translation
- run: bun run deploy:translation
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4 changes: 1 addition & 3 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
paths:
- 'apps/web/**'
- 'apps/shared/**'
- 'messages/**'
- 'project.inlang/**'
- 'scripts/**'
- 'configs.json'
- 'package.json'
Expand Down Expand Up @@ -68,7 +66,7 @@ jobs:
apps/web/.astro
node_modules/.astro
node_modules/.cache
key: ${{ runner.os }}-astro-web-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/web/**', 'apps/shared/**', 'messages/**', 'project.inlang/**', 'scripts/**', 'configs.json') }}
key: ${{ runner.os }}-astro-web-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/web/**', 'apps/shared/**', 'scripts/**', 'configs.json') }}
restore-keys: |
${{ runner.os }}-astro-web-${{ hashFiles('**/bun.lock') }}-
${{ runner.os }}-astro-web-
Expand Down
40 changes: 36 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
outputs:
web: ${{ steps.filter.outputs.web }}
docs: ${{ steps.filter.outputs.docs }}
translation: ${{ steps.filter.outputs.translation }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
with:
Expand All @@ -38,6 +39,7 @@ jobs:
{
echo "web=true"
echo "docs=true"
echo "translation=true"
} >> "$GITHUB_OUTPUT"
exit 0
fi
Expand All @@ -62,18 +64,24 @@ jobs:

web=false
docs=false
translation=false

if matches '^(apps/web/|apps/shared/|messages/|project\.inlang/|scripts/|configs\.json$|package\.json$|bun\.lock$|\.github/workflows/test\.yml$|\.github/workflows/deploy-web\.yml$)'; then
if matches '^(apps/web/|apps/shared/|scripts/|configs\.json$|package\.json$|bun\.lock$|\.github/workflows/test\.yml$|\.github/workflows/deploy-web\.yml$)'; then
web=true
fi

if matches '^(apps/docs/|apps/shared/|apps/web/public/|apps/web/src/config/plugins\.ts$|messages/|project\.inlang/|configs\.json$|package\.json$|bun\.lock$|\.github/workflows/test\.yml$|\.github/workflows/deploy-docs\.yml$)'; then
if matches '^(apps/docs/|apps/shared/|apps/web/public/|apps/web/src/config/plugins\.ts$|configs\.json$|package\.json$|bun\.lock$|\.github/workflows/test\.yml$|\.github/workflows/deploy-docs\.yml$)'; then
docs=true
fi

if matches '^(apps/translation-worker/|package\.json$|bun\.lock$|\.github/workflows/test\.yml$|\.github/workflows/deploy-translation\.yml$)'; then
translation=true
fi

{
echo "web=$web"
echo "docs=$docs"
echo "translation=$translation"
} >> "$GITHUB_OUTPUT"

web:
Expand Down Expand Up @@ -107,7 +115,7 @@ jobs:
apps/web/.astro
node_modules/.astro
node_modules/.cache
key: ${{ runner.os }}-astro-web-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/web/**', 'apps/shared/**', 'messages/**', 'project.inlang/**', 'scripts/**', 'configs.json') }}
key: ${{ runner.os }}-astro-web-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/web/**', 'apps/shared/**', 'scripts/**', 'configs.json') }}
restore-keys: |
${{ runner.os }}-astro-web-${{ hashFiles('**/bun.lock') }}-
${{ runner.os }}-astro-web-
Expand Down Expand Up @@ -150,7 +158,7 @@ jobs:
apps/docs/.astro
node_modules/.astro
node_modules/.cache
key: ${{ runner.os }}-astro-docs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/docs/**', 'apps/shared/**', 'apps/web/public/**', 'apps/web/src/config/plugins.ts', 'messages/**', 'project.inlang/**', 'configs.json') }}
key: ${{ runner.os }}-astro-docs-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/docs/**', 'apps/shared/**', 'apps/web/public/**', 'apps/web/src/config/plugins.ts', 'configs.json') }}
restore-keys: |
${{ runner.os }}-astro-docs-${{ hashFiles('**/bun.lock') }}-
${{ runner.os }}-astro-docs-
Expand All @@ -161,3 +169,27 @@ jobs:
ORAMA_CLOUD_API_KEY: ${{ secrets.ORAMA_CLOUD_API_KEY }}
ORAMA_CLOUD_ENDPOINT: ${{ secrets.ORAMA_CLOUD_ENDPOINT }}
CLOUDFLARE_TURNSTILE_SITE_KEY: ${{ secrets.CLOUDFLARE_TURNSTILE_SITE_KEY }}

translation:
name: Translation Worker Check
needs: changes
if: needs.changes.outputs.translation == 'true'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: 1.3.11
- name: Cache bun modules
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- run: bun install --frozen-lockfile
- run: bun run ci:verify:translation
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ When creating or modifying pages, always consider SEO:
- Pages: `src/pages/`
- Components: `src/components/`
- Layouts: `src/layouts/`
- Translations: `src/paraglide/messages.ts`
- UI copy helpers: `apps/web/src/copy/messages.ts`, `apps/docs/src/copy/messages.ts`
- SEO helpers: `src/lib/ldJson.ts`
- Styles: Tailwind CSS

Expand Down
Loading
Loading