From 4cac36212b98dc1d1fb2f8e408828c956f733696 Mon Sep 17 00:00:00 2001 From: Andrei Solodovnikov Date: Mon, 5 Oct 2026 15:46:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mdbook.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml index ad7fc9c..e38487f 100644 --- a/.github/workflows/mdbook.yml +++ b/.github/workflows/mdbook.yml @@ -1,4 +1,4 @@ -# Builds the Russian (master) and English (english_version) editions of the +# Builds the Russian and English editions of the # mdBook and deploys them as one GitHub Pages site: # # /APS/ ← Russian @@ -8,7 +8,7 @@ name: Deploy mdBook site to Pages on: push: - branches: ["master", "english_version"] + branches: ["russian_version", "english_version"] workflow_dispatch: permissions: @@ -27,9 +27,11 @@ jobs: MDBOOK_VERSION: 0.4.36 steps: - # ── 1. Checkout master (Russian) ────────────────────────────────────── - - name: Checkout master (Russian) + # ── 1. Checkout Russian version ────────────────────────────────────── + - name: Checkout Russian version uses: actions/checkout@v4 + with: + ref: russian_version # checks out into $GITHUB_WORKSPACE (i.e. the working directory) # ── 2. Install mdBook ───────────────────────────────────────────────── @@ -68,7 +70,7 @@ jobs: # Use the dedicated English book.toml (sets site-url = "/APS/en/") cp .github/book_en.toml book.toml - # Copy language-switcher theme files from the master checkout + # Copy language-switcher theme files from the russian_version checkout cp -r ../.github/theme ./theme - name: Build English (mdbook → english_src/book/)