Skip to content

Commit

Permalink
CD: Test workflow for book publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Feb 11, 2024
1 parent 087f737 commit 0bea867
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
workflow_dispatch:

jobs:
publish_book:
name: Publish mdBook
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build setup
uses: ./.github/actions/build_setup
- name: mdBook setup
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Install `mdbook-cmdrun`
run: cargo install mdbook-cmdrun
- name: Build book
run: mdbook build
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/book
3 changes: 2 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build-dir = "target/book"

[output.html]
preferred-dark-theme = "navy"
curly-quotes = true
git-repository-url = "https://github.com/gibbz00/rops"
edit-url-template = "https://github.com/gibbz00/rops/edit/main/{path}"
curly-quotes = true
cname = "gibbz00.github.io"

0 comments on commit 0bea867

Please sign in to comment.