From bdbb93ea047f4aa2ea62f3dc4476674f69524b83 Mon Sep 17 00:00:00 2001 From: Jacob Date: Tue, 8 Oct 2024 12:35:50 -0400 Subject: [PATCH] The again. --- .gitea/workflows/build-serve.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/build-serve.yml diff --git a/.gitea/workflows/build-serve.yml b/.gitea/workflows/build-serve.yml new file mode 100644 index 0000000..c321edf --- /dev/null +++ b/.gitea/workflows/build-serve.yml @@ -0,0 +1,29 @@ +name: "Build mdBook" + +on: + push: + branches: + - "main" + +jobs: + build: + runs-on: "ubuntu-latest" + + steps: + - name: "Checkout code" + uses: "actions/checkout@v3" + + - name: "Install mdBook" + run: | + curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | tar -xvz -C /usr/local/bin + + - name: "Build mdBook" + run: "mdbook build" + + - name: "Deploy" + run: | + rsync -avz --delete ./book/ books@signorovitch.org:apush-guide + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + +