2021-11-12 21:54:17 +00:00
|
|
|
# Prepare source texts & upload them to Crowdin
|
2021-08-29 12:37:27 +00:00
|
|
|
|
2021-11-12 21:54:17 +00:00
|
|
|
name: Crowdin Source Texts Upload
|
2021-08-29 12:37:27 +00:00
|
|
|
|
2021-11-12 21:54:17 +00:00
|
|
|
# on change to the English texts
|
2021-08-29 12:37:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
2021-11-12 21:54:17 +00:00
|
|
|
- "libgambatte/libretro/libretro_core_options.h"
|
2021-08-29 12:37:27 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-11-12 21:54:17 +00:00
|
|
|
upload_source_file:
|
2021-08-29 12:37:27 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-11-12 21:54:17 +00:00
|
|
|
- name: Setup Java JDK
|
2023-01-06 22:59:45 +00:00
|
|
|
uses: actions/setup-java@v3
|
2021-11-12 21:54:17 +00:00
|
|
|
with:
|
2023-01-06 22:59:45 +00:00
|
|
|
java-version: 18
|
|
|
|
distribution: zulu
|
2021-11-12 21:54:17 +00:00
|
|
|
|
2021-08-29 12:37:27 +00:00
|
|
|
- name: Setup Python
|
2023-01-06 22:59:45 +00:00
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
2021-11-12 21:54:17 +00:00
|
|
|
|
2021-08-29 12:37:27 +00:00
|
|
|
- name: Checkout
|
2023-01-06 22:59:45 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-08-29 12:37:27 +00:00
|
|
|
|
2021-11-12 21:54:17 +00:00
|
|
|
- name: Upload Source
|
2021-08-29 12:37:27 +00:00
|
|
|
shell: bash
|
2021-11-12 21:54:17 +00:00
|
|
|
env:
|
|
|
|
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
|
2021-08-29 12:37:27 +00:00
|
|
|
run: |
|
2021-11-13 17:49:56 +00:00
|
|
|
python3 intl/upload_workflow.py $CROWDIN_API_KEY "gambatte-libretro" "libgambatte/libretro"
|