This commit is contained in:
parent
af37df9f8b
commit
56e21d5867
1 changed files with 9 additions and 5 deletions
|
@ -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/
|
||||||
|
|
Loading…
Reference in a new issue