-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 944 Bytes
/
Copy pathpreview.yml
File metadata and controls
34 lines (32 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy Preview
on:
push:
branches-ignore:
- main
jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Generate translations
uses: lyqht/deepl-translate-github-action@v2.1.1
with:
target_languages: pt-PT,pt-BR,zh,fr,ja,ko,pl,ru,de,fi,id,it,nl,es
input_file_path: public/locales/en/translation.json
output_file_name_pattern: public/locales/{language}/translation.json
deepl_api_key: ${{ secrets.DEEPL_API_KEY }}
deploy:
needs: [translate]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Dependencies
run: pnpm install --no-frozen-lockfile
- name: Build App
run: pnpm build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}