Skip to content

Commit

Permalink
vocs-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Jan 21, 2024
1 parent bbb30ee commit 28e09ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 69 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/install-mdbook/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/setup-rust-cache/action.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/test.yml

This file was deleted.

33 changes: 11 additions & 22 deletions .github/workflows/mdbook.yml → .github/workflows/vocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Sample workflow for building and deploying a mdBook site to GitHub Pages
#
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
#
name: Deploy mdBook site to Pages

on:
Expand Down Expand Up @@ -32,33 +28,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Rust cache
uses: ./.github/workflows/setup-rust-cache

- name: Install mdbook
uses: ./.github/workflows/install-mdbook

- name: Build in English
run: |
mdbook build -d book
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"

- name: Build all translations
run: |
for po_lang in $(cat ./LANGUAGES); do
echo "::group::Building $po_lang translation"
MDBOOK_BOOK__LANGUAGE=$po_lang \
mdbook build -d book/$po_lang
echo "::endgroup::"
done
- name: Install dependencies
run: cd dojo-book && pnpm install && pnpm run build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./book
path: ./dojo-book/docs/dist

- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 28e09ae

Please sign in to comment.