Skip to content

Commit 937b883

Browse files
committed
ci: add ci workflow for lingo.dev :)
1 parent 44523bf commit 937b883

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/i18n.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: i18n
2+
3+
on: push
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
i18n:
11+
name: update translations
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v4
16+
17+
- name: setup php
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: "8.4"
21+
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom
22+
coverage: none
23+
tools: composer:v2
24+
25+
- name: install composer dependencies
26+
run: composer install --no-interaction --no-progress
27+
28+
- name: install kirby cli globally
29+
run: composer global require getkirby/cli
30+
31+
- name: extract translations
32+
run: |
33+
export PATH="$HOME/.composer/vendor/bin:$PATH"
34+
kirby i18n:extract --clean
35+
36+
- uses: lingodotdev/lingo.dev@main
37+
with:
38+
api-key: ${{ secrets.LINGODOTDEV_API_KEY }}

0 commit comments

Comments
 (0)