mirror of
https://github.com/MPSU/APS.git
synced 2026-10-23 03:08:27 +00:00
Обновление workflows
This commit is contained in:
committed by
GitHub
parent
06da941d8a
commit
4cac36212b
12
.github/workflows/mdbook.yml
vendored
12
.github/workflows/mdbook.yml
vendored
@@ -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:
|
# mdBook and deploys them as one GitHub Pages site:
|
||||||
#
|
#
|
||||||
# /APS/ ← Russian
|
# /APS/ ← Russian
|
||||||
@@ -8,7 +8,7 @@ name: Deploy mdBook site to Pages
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["master", "english_version"]
|
branches: ["russian_version", "english_version"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -27,9 +27,11 @@ jobs:
|
|||||||
MDBOOK_VERSION: 0.4.36
|
MDBOOK_VERSION: 0.4.36
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# ── 1. Checkout master (Russian) ──────────────────────────────────────
|
# ── 1. Checkout Russian version ──────────────────────────────────────
|
||||||
- name: Checkout master (Russian)
|
- name: Checkout Russian version
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: russian_version
|
||||||
# checks out into $GITHUB_WORKSPACE (i.e. the working directory)
|
# checks out into $GITHUB_WORKSPACE (i.e. the working directory)
|
||||||
|
|
||||||
# ── 2. Install mdBook ─────────────────────────────────────────────────
|
# ── 2. Install mdBook ─────────────────────────────────────────────────
|
||||||
@@ -68,7 +70,7 @@ jobs:
|
|||||||
# Use the dedicated English book.toml (sets site-url = "/APS/en/")
|
# Use the dedicated English book.toml (sets site-url = "/APS/en/")
|
||||||
cp .github/book_en.toml book.toml
|
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
|
cp -r ../.github/theme ./theme
|
||||||
|
|
||||||
- name: Build English (mdbook → english_src/book/)
|
- name: Build English (mdbook → english_src/book/)
|
||||||
|
|||||||
Reference in New Issue
Block a user