Skip to content

fix: color mode detection #3

fix: color mode detection

fix: color mode detection #3

Workflow file for this run

name: build and deploy docs
on:
push:
branches:
- master
#paths:
# - "docs/**"
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- name: Install mdbook
run: |
cargo install mdbook
working-directory: docs
- name: Build mdBook
run: |
mdbook build
working-directory: docs
- name: Copy CNAME file
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: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4