From b436f545a49d85e300676d6f15946233ae334247 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 7 Jun 2024 23:01:23 +0530 Subject: [PATCH] fix: deploy docs only on master --- .woodpecker.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 36ce9b5..4a35254 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,12 +1,18 @@ -pipeline: - backend: +steps: + test: image: rust commands: - - apt update && apt-get -y --no-install-recommends install tar gpg curl wget git - rustup component add rustfmt - rustup component add clippy - make lint - make test - make doc + deploy_docs: + image: rust + when: + branch: master + event: [push, tag, deployment] + commands: + - apt update && apt-get -y --no-install-recommends install tar gpg curl wget git - make ci-deploy secrets: [ GITEA_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET ]