Skip to content

Commit

Permalink
deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrostr committed Feb 6, 2025
1 parent e8367d1 commit e9be649
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy mdBook
on:
push:
branches:
- main
paths:
- "docs/**"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"

- name: Build
working-directory: ./docs
run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
3 changes: 3 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ language = "en"
multilingual = false
src = "src"
title = "rig-onchain-kit"

[output.html]
site-url = "/rig-onchain-kit/"

0 comments on commit e9be649

Please sign in to comment.