From 8e4e62e7bccb5add544b4067eae70c0b14c54749 Mon Sep 17 00:00:00 2001 From: Jacob Koziej Date: Sun, 10 Sep 2023 12:52:00 -0400 Subject: [PATCH] Add `mdbook-deploy.yml` --- .github/workflows/mdbook-deploy.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/mdbook-deploy.yml diff --git a/.github/workflows/mdbook-deploy.yml b/.github/workflows/mdbook-deploy.yml new file mode 100644 index 000000000..2d6df682b --- /dev/null +++ b/.github/workflows/mdbook-deploy.yml @@ -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: "`{sha}`"