-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (40 loc) · 1.35 KB
/
crowdin-upload.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
37
38
39
40
41
42
43
44
45
46
47
name: Upload source files to Crowdin
on:
push:
branches: [ master ]
paths:
- 'romfs/lang/en/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
submodules: recursive
- name: Setup environment
run: git config --global safe.directory '*'
- name: Install tools
run: |
curl -L https://github.com/Epicpkmn11/bannertool/releases/latest/download/bannertool.zip -o bannertool.zip
unzip bannertool.zip linux-x86_64/bannertool
chmod +x linux-x86_64/bannertool
mv linux-x86_64/bannertool /usr/local/bin
rm -rf bannertool.zip linux-x86_64
curl -L https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.17/makerom-v0.17-ubuntu_x86_64.zip -o makerom-v0.17-ubuntu_x86_64.zip
unzip makerom-v0.17-ubuntu_x86_64.zip
chmod +x makerom
mv makerom /usr/local/bin
rm makerom-v0.17-ubuntu_x86_64.zip
- name: Build test
run: |
make
- name: Push to Crowdin
uses: crowdin/github-action@v2
with:
upload_sources: true
env:
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
UU_CROWDIN_ID: ${{ secrets.UU_CROWDIN_ID }}