on: push: branches: - main jobs: build: runs-on: docker container: image: node:20-bookworm steps: - name: Install prerequisites run: apt update && apt install -y emacs-nox rsync - uses: actions/checkout@v4 - name: Publish Org Roam documents run: emacs --batch --no-init-file --load publish.el --funcall org-publish-all - name: Set up SSH key run: | mkdir -p ~/.ssh cat < ~/.ssh/config Host reason HostName reason.sailmaker.fenix.lgbt User correlr IdentityFile ~/.ssh/id_rsa StrictHostKeyChecking no EOF echo "${{ secrets.ssh_private_key }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - name: Rsync HTML run: rsync -avz --delete ./public/ reason:Public/roam/