mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
34 lines
744 B
YAML
34 lines
744 B
YAML
name: Translate README
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
translate:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Translate README to all languages
|
|
env:
|
|
GLM_API_KEY: ${{ secrets.GLM_API_KEY }}
|
|
run: |
|
|
node .github/scripts/translate-readme.js vi zh-CN
|
|
|
|
- name: Upload translations as artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: translated-readmes
|
|
path: i18n/
|