Skip to content

Commit

Permalink
Merge pull request #30 from ethereum-optimism/refcell/publish-book
Browse files Browse the repository at this point in the history
feat: Publish Book on Main
  • Loading branch information
0xKitsune authored Jul 24, 2024
2 parents a21b563 + 6133467 commit 6288666
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Book Deployment

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
deployments: write
name: Publish to GitHub Pages
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Setup mdbook
run: cargo install mdbook mdbook-mermaid mdbook-template
- name: Build book
working-directory: ./book
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/book

0 comments on commit 6288666

Please sign in to comment.