From 9cd9ee1c94896c15ed32da9906492c2958f62d9b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 27 Oct 2023 20:19:56 -0700 Subject: [PATCH] CI/CD --- .gitea/workflows/build.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 53e094d..c7107e0 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,11 +5,9 @@ jobs: runs-on: - hugo steps: - - name: Check out source - run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . - - name: Build - run: hugo - - name: Set up SSH - run: mkdir -p $HOME/.ssh && cp .gitea/workflows/known_hosts $HOME/.ssh - - name: Publish - run: rsync --delete -vax ./public/ neale@melville.woozle.org:/srv/www/woozle.org/ + - 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 }} > $HOME/id_rsa + - run: rsync --delete -vax ./public/ neale@melville.woozle.org:/srv/www/woozle.org/