Skip to content

Update main.yml

Update main.yml #126

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
build:
name: Build, Test and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # Update to v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> $GITHUB_PATH
- run: mdbook build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4 # Update to v4
with:
folder: book # The folder the action should deploy