diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index 246ee9ae2..82c9fee28 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_cn.yml b/.github/workflows/translate_cn.yml index 61c5f3116..55923c0ef 100644 --- a/.github/workflows/translate_cn.yml +++ b/.github/workflows/translate_cn.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index facbeab4e..604b44d22 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index 9c34959a4..d6b61364e 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index 52eac6c34..2bae366ba 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_gr.yml b/.github/workflows/translate_gr.yml index 21f18d271..980c4aee4 100644 --- a/.github/workflows/translate_gr.yml +++ b/.github/workflows/translate_gr.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_in.yml b/.github/workflows/translate_in.yml index 986298770..62678ef6c 100644 --- a/.github/workflows/translate_in.yml +++ b/.github/workflows/translate_in.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index 711205809..765c57da5 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_jp.yml b/.github/workflows/translate_jp.yml index bf22ed9e2..f6670d6f9 100644 --- a/.github/workflows/translate_jp.yml +++ b/.github/workflows/translate_jp.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_kr.yml b/.github/workflows/translate_kr.yml index d5b851408..c40690587 100644 --- a/.github/workflows/translate_kr.yml +++ b/.github/workflows/translate_kr.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index 124cc6dcc..c8a2dfb55 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index 831cf311a..46de5a19e 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken - + + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_rs.yml b/.github/workflows/translate_rs.yml index 067b5d47f..419e9c0d8 100644 --- a/.github/workflows/translate_rs.yml +++ b/.github/workflows/translate_rs.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index b3deb4c28..05090b3df 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index 0097cd1c3..9889a86dd 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH" diff --git a/.github/workflows/translate_ua.yml b/.github/workflows/translate_ua.yml index 3e154f45f..5a37ade1e 100644 --- a/.github/workflows/translate_ua.yml +++ b/.github/workflows/translate_ua.yml @@ -31,11 +31,29 @@ jobs: with: python-version: 3.8 - - name: Install dependencies + - name: Install python dependencies run: | python -m pip install --upgrade pip pip3 install openai tqdm tiktoken + # Install Rust and Cargo + - name: Install Rust and Cargo + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # Install mdBook and Plugins + - name: Install mdBook and Plugins + run: | + cargo install mdbook + cargo install mdbook-alerts + cargo install mdbook-reading-time + cargo install mdbook-pagetoc + cargo install mdbook-tabs + cargo install mdbook-codename + + - name: Update & install wget & translator.py run: | sudo apt-get update @@ -73,6 +91,11 @@ jobs: echo "Translating $(cat /tmp/file_paths.txt)" python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3 + # Build the mdBook + - name: Build mdBook + run: mdbook build + + # Push changes to the repository - name: Commit and push changes run: | git checkout "$BRANCH"