apush-guide/.gitea/workflow.yml

30 lines
634 B
YAML
Raw Normal View History

2024-10-08 12:33:26 -04:00
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
2024-10-08 12:34:27 -04:00
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
2024-10-08 12:33:26 -04:00