From 0bb8a402013d10e9d5231b07649bb5145fcea125 Mon Sep 17 00:00:00 2001 From: Jacob Date: Tue, 8 Oct 2024 12:33:26 -0400 Subject: [PATCH] Added workflow. --- .gitea/workflow.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflow.yml diff --git a/.gitea/workflow.yml b/.gitea/workflow.yml new file mode 100644 index 0000000..d01e120 --- /dev/null +++ b/.gitea/workflow.yml @@ -0,0 +1,27 @@ +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 + +