From 56e21d58676b56fcda410d2cd7362f729971b81d Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sun, 25 Aug 2024 20:28:19 -0400 Subject: [PATCH] Fix and clean up the workflow --- .forgejo/workflows/example.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/example.yaml b/.forgejo/workflows/example.yaml index 37851d0..4a5a8a7 100644 --- a/.forgejo/workflows/example.yaml +++ b/.forgejo/workflows/example.yaml @@ -8,10 +8,13 @@ jobs: container: image: node:20-bookworm 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 - - run: emacs --batch --no-init-file --load publish.el --funcall org-publish-all - - run: | + - 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 < ~/.ssh/config Host reason @@ -20,6 +23,7 @@ jobs: IdentityFile ~/.ssh/id_rsa StrictHostKeyChecking no EOF - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa + echo "${{ secrets.ssh_private_key }}" > ~/.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/