Skip to content

Commit

Permalink
fix(#2): Fix docs build (#3)
Browse files Browse the repository at this point in the history
* Testing possible solution

* Added branch name

* Commented out path

* Fix for mdbook build error

* Added new install rust action & workflow_dispatch

* Removed testing code
  • Loading branch information
Hiccup-za authored Oct 17, 2024
1 parent e58f411 commit 527b70e
Show file tree
Hide file tree
Showing 17 changed files with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build and deploy docs

on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -12,31 +13,32 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
- 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
- name: 📚 Install mdbook
run: |
cargo install mdbook
- name: Build mdBook
- name: 📖 Build mdBook
working-directory: docs
run: |
mdbook build
- name: Copy CNAME file
- name: 📄 Copy CNAME file
working-directory: docs
run: |
cp CNAME ./book/
- name: Deploy to GitHub Pages
- name: 📤 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./docs/book
publish_dir: ./docs/book
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 527b70e

Please sign in to comment.