roam/.forgejo/workflows/example.yaml
Correl Roush 56e21d5867
All checks were successful
/ build (push) Successful in 3m37s
Fix and clean up the workflow
2024-08-25 20:28:19 -04:00

29 lines
864 B
YAML

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 <<EOF > ~/.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/