Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Sep 8, 2024
1 parent 76370c0 commit 67f4749
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: zkEVM mdbook
on:
push:
branches: [develop, main]
pull_request:
branches:
- "**"

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,9 +29,18 @@ jobs:
command: install
args: mdbook-katex mdbook-bib mdbook-mermaid

- name: Initialize mermaid preprocessor
run: mdbook-mermaid install book

- name: Build book
run: mdbook build book

deploy:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion book/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ book
# Mermaid initialization files
# Obtained with `mdbook-mermaid install book`.
mermaid-init.js
mermaid.min.js
mermaid.min.js

0 comments on commit 67f4749

Please sign in to comment.