Update main.yml #126
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |