Skip to content

[review] MD-91: Define the Move Stack #199

[review] MD-91: Define the Move Stack

[review] MD-91: Define the Move Stack #199

Workflow file for this run

name: Build mipBook
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
MIPBOOK_VERSION: 0.4.43
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout new repo
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq curl
- name: Install mipbook
run: |
mkdir mipbook
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v${{ env.MIPBOOK_VERSION }}/mdbook-v${{ env.MIPBOOK_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mipbook
echo `pwd`/mipbook >> $GITHUB_PATH
- name: Generate Book
run: ./generate_book.sh
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book