Skip to content

Add mdbook-deploy.yml #5

Add mdbook-deploy.yml

Add mdbook-deploy.yml #5

Workflow file for this run

---
name: mdbook-deploy
on:
push:
branches:
- user/jacobkoziej/docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install latest version of `mdbook`
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: latest
- name: build docs
run: mdbook build
- name: deploy docs
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: build/docs
FOLDER: build/docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_EMPTY_COMMITS: true
MESSAGE: '{long-sha}'