Skip to content

Commit

Permalink
Add release book deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap committed Oct 4, 2023
1 parent 20c5bcd commit a26ab0f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-release-book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build & deploy release book

on:
push:
tags:
- '**'

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- run: mdbook build the_book/

- name: Deploy to Github pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.CUICUI_BOOK_DEPLOY_KEY }}
external_repository: nicopap/cuicui.nicopap.ch
cname: cuicui.nicopap.ch
publish_dir: ./the_book/book

0 comments on commit a26ab0f

Please sign in to comment.