Skip to content

main

main #12

Workflow file for this run

name: Deploy Book
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install mdBook
if: exists('book.toml')

Check failure on line 17 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy Book

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 17, Col: 13): Unrecognized function: 'exists'. Located at position 1 within expression: exists('book.toml') .github/workflows/deploy.yml (Line: 22, Col: 13): Unrecognized function: 'exists'. Located at position 1 within expression: exists('book.toml')
run: |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C /usr/local/bin
- name: Build the book
if: exists('book.toml')
run: mdbook build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./book