From 64778580b3f0dd38657b8fe7ea8e7e1a49812f82 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 27 Oct 2023 20:33:32 -0700 Subject: [PATCH] CI/CD --- .gitea/workflows/build.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 13cd0f4..210464e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -7,7 +7,11 @@ jobs: steps: - run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . - run: hugo - - run: mkdir -p $HOME/.ssh - - run: cp .gitea/workflows/known_hosts $HOME/.ssh - - run: umask 077; echo ${{ secrets.SSH_PUBLISH_PRIVATE_KEY_BASE64 }} | base64 -d > $HOME/id_rsa - - run: rsync --delete -vax ./public/ neale@melville.woozle.org:/srv/www/woozle.org/ + - name: set up SSH + run: | + mkdir -p $HOME/.ssh + cp .gitea/workflows/known_hosts $HOME/.ssh + umask 077; echo ${{ secrets.SSH_PUBLISH_PRIVATE_KEY_BASE64 }} | base64 -d > $HOME/id_rsa + - name: rsync + run: | + ssh-agent rsync --delete -vax ./public/ neale@melville.woozle.org:/srv/www/woozle.org/