Skip to content

Commit

Permalink
Updating docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjovanc committed Jun 19, 2024
1 parent cc86afa commit 0d1823f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- master
paths:
- "docs/**"
#paths:
# - "docs/**"

jobs:
build:
Expand All @@ -18,33 +18,35 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Rust
uses: ATiltedTree/setup-rust@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
rust-version: stable
profile: minimal
toolchain: stable
components: clippy

- name: Install mdbook
run: |
cargo install mdbook
working-directory: docs

- name: Build mdBook
working-directory: docs
run: |
mdbook build
working-directory: docs

- name: Copy CNAME file
working-directory: docs
run: |
cp CNAME ./book/
working-directory: docs

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
path: './docs'

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

0 comments on commit 0d1823f

Please sign in to comment.