From 261986a07dee1a048da1998efa54ea131f8eefec Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 19 Feb 2023 22:28:23 -0600 Subject: [PATCH] fix CI config --- .woodpecker/publish-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/publish-docs.yml b/.woodpecker/publish-docs.yml index 3b7f6f7..dc8adb0 100644 --- a/.woodpecker/publish-docs.yml +++ b/.woodpecker/publish-docs.yml @@ -2,12 +2,13 @@ pipeline: build: image: klakegg/hugo:ext-debian-ci commands: + - git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);' - hugo deploy: image: debian commands: - - mkdir ~/.ssh && chmod -R 700 + - mkdir ~/.ssh && chmod -R 700 ~/.ssh - apt update -y && apt install openssh-client rsync -y - echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts - echo 'echo "$SSH_PASSPHRASE"' > ~/.ssh/.print_ssh_password