From 0bea867307713873fc8a199b4b667f220b0a9ec4 Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Sun, 11 Feb 2024 12:17:23 +0100 Subject: [PATCH] CD: Test workflow for book publishing. --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ book.toml | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..027af84 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/book.toml b/book.toml index 6a4a45b..914f133 100644 --- a/book.toml +++ b/book.toml @@ -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"