Skip to content

Commit

Permalink
Add mdbook-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkoziej committed Sep 10, 2023
1 parent 70054f5 commit b05924c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/mdbook-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---

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}'

0 comments on commit b05924c

Please sign in to comment.