roam/.forgejo/workflows/example.yaml

30 lines
864 B
YAML
Raw Normal View History

2024-08-25 22:13:02 +00:00
on:
push:
branches:
- main
jobs:
build:
2024-08-25 22:13:02 +00:00
runs-on: docker
container:
2024-08-25 23:52:12 +00:00
image: node:20-bookworm
2024-08-25 22:13:02 +00:00
steps:
2024-08-26 00:28:19 +00:00
- name: Install prerequisites
run: apt update && apt install -y emacs-nox rsync
- uses: actions/checkout@v4
2024-08-26 00:28:19 +00:00
- 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
2024-08-26 00:28:19 +00:00
echo "${{ secrets.ssh_private_key }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
2024-08-26 00:28:19 +00:00
- name: Rsync HTML
run: rsync -avz --delete ./public/ reason:Public/roam/