roam/.forgejo/workflows/example.yaml
Correl Roush 85d63626e8
Some checks failed
/ build (push) Failing after 4m1s
Bring back rsync
2024-08-25 19:58:31 -04:00

27 lines
745 B
YAML

on:
push:
branches:
- main
jobs:
build:
runs-on: docker
container:
image: node:20-bookworm
steps:
- run: apt update && apt install -y emacs-nox rsync
- uses: actions/checkout@v4
- run: emacs --batch --no-init-file --load publish.el --funcall org-publish-all
- run: |
mkdir -p ~/.ssh
cat <<EOF > ~/.ssh/config
Host reason
HostName reason.sailmaker.fenix.lgbt
User correlr
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
EOF
cat <<EOF > ~/.ssh/id_rsa
$SSH_PRIVATE_KEY
EOF
chmod 600 ~/.ssh/id_rsa
- run: rsync -avz --delete ./public/ reason:Public/roam/