2024-08-25 22:13:02 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
2024-08-25 23:20:54 +00:00
|
|
|
build:
|
2024-08-25 22:13:02 +00:00
|
|
|
runs-on: docker
|
2024-08-25 23:20:54 +00:00
|
|
|
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
|
2024-08-25 23:20:54 +00:00
|
|
|
- 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: |
|
2024-08-25 23:20:54 +00:00
|
|
|
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
|
2024-08-25 23:20:54 +00:00
|
|
|
chmod 600 ~/.ssh/id_rsa
|
2024-08-26 00:28:19 +00:00
|
|
|
- name: Rsync HTML
|
|
|
|
run: rsync -avz --delete ./public/ reason:Public/roam/
|