Skip to content

Commit

Permalink
mdbook action (trial) for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Oct 27, 2024
1 parent 8e2a094 commit 8e57f47
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: mdbook publish

on:
push:
branches:
- main:
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
# mdbook-version: '0.4.10'
mdbook-version: 'latest'

- run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
destination_dir: ./ref

0 comments on commit 8e57f47

Please sign in to comment.