Skip to content

Commit

Permalink
Initial work to publish mdbook docs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 13, 2023
1 parent 713e599 commit 3016bac
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy documentation

on:
push:
branches: [develop]
workflow_dispatch: {}

jobs:
docs:
name: GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Fetch element-web
uses: actions/checkout@v4
with:
path: element-web

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

- run: mdbook build
working-directory: element-web

- name: Deploy to gh pages
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
2 changes: 2 additions & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Summary

- [Introduction](../README.md)

# Usage

- [Betas](betas.md)
Expand Down

0 comments on commit 3016bac

Please sign in to comment.