Fix and clean up the workflow
All checks were successful
/ build (push) Successful in 3m37s

This commit is contained in:
Correl Roush 2024-08-25 20:28:19 -04:00
parent af37df9f8b
commit 56e21d5867

View file

@ -8,10 +8,13 @@ jobs:
container: container:
image: node:20-bookworm image: node:20-bookworm
steps: steps:
- run: apt update && apt install -y emacs-nox rsync - name: Install prerequisites
run: apt update && apt install -y emacs-nox rsync
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: emacs --batch --no-init-file --load publish.el --funcall org-publish-all - name: Publish Org Roam documents
- run: | run: emacs --batch --no-init-file --load publish.el --funcall org-publish-all
- name: Set up SSH key
run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
cat <<EOF > ~/.ssh/config cat <<EOF > ~/.ssh/config
Host reason Host reason
@ -20,6 +23,7 @@ jobs:
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no StrictHostKeyChecking no
EOF EOF
echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa echo "${{ secrets.ssh_private_key }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
- run: rsync -avz --delete ./public/ reason:Public/roam/ - name: Rsync HTML
run: rsync -avz --delete ./public/ reason:Public/roam/