Skip to content

Commit

Permalink
+ ci build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Nov 14, 2024
1 parent 703fe42 commit e4c068c
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy docs

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install mdBook
run: |
cargo install mdbook --no-default-features --features search --vers "^0.4" --locked
- name: Build mdBook
run: |
cd doc
mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './doc/book'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
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 e4c068c

Please sign in to comment.