-
-
Notifications
You must be signed in to change notification settings - Fork 251
36 lines (31 loc) · 1.12 KB
/
upload-translations.yml
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
35
36
name: Upload translations
on:
workflow_dispatch:
concurrency:
group: "upload-translations"
cancel-in-progress: true
jobs:
upload-translations:
runs-on: ubuntu-latest
# This workflow is not useful to forks without setting up Transifex and modifying the
# workflow to use your organization, project, resources, API token, ...
if: ${{ github.repository == 'TurboWarp/extensions' && github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Upload translations
run: npm run upload-translations
env:
TRANSIFEX_TOKEN: "${{ secrets.TRANSIFEX_TOKEN }}"
TRANSIFEX_ORGANIZATION: "turbowarp"
TRANSIFEX_PROJECT: "turbowarp"
TRANSIFEX_RUNTIME_RESOURCE: "extensions"
TRANSIFEX_METADATA_RESOURCE: "extension-metadata"