From 7080d133a2d9437082b4639689c98a53ff9e2a31 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Fri, 29 Dec 2023 13:19:46 +0100 Subject: [PATCH] Use CI vars for plugin (#3061) --- .woodpecker/docs.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml index 7e86aaf0a..0881ba8b3 100644 --- a/.woodpecker/docs.yml +++ b/.woodpecker/docs.yml @@ -13,6 +13,8 @@ when: branch: - ${CI_REPO_DEFAULT_BRANCH} - renovate/* + - event: pull_request_closed + path: *when_path - cron: update_docs event: cron - event: manual @@ -43,22 +45,18 @@ steps: - event: [cron, manual] deploy-preview: - image: docker.io/woodpeckerci/plugin-surge-preview:1.2.2 + image: docker.io/woodpeckerci/plugin-surge-preview:1.3.0 settings: path: 'docs/build/' surge_token: from_secret: SURGE_TOKEN - forge_type: github - forge_url: 'https://github.com' forge_repo_token: from_secret: GITHUB_TOKEN_SURGE failure: ignore when: - event: pull_request + event: [pull_request, pull_request_closed] path: *when_path - # TODO: add step to remove preview again after PR is closed (waiting for #286) - deploy: image: docker.io/alpine:3.19 secrets: