From 907d66ea1d5830b3ad3ba642191798dcbe7c97ea Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Sun, 1 Jan 2023 01:04:39 +0530 Subject: [PATCH] CI changes --- .woodpecker.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0e3f437..27a1857 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,6 +9,19 @@ pipeline: exclude: ['*.md', '.gitea/*'] event: ['push', 'pull_request'] + surge: + image: node:alpine + commands: + - npm install surge + - cp dist/index.html dist/200.html + - npx surge ./dist hyperpipe.surge.sh + secrets: [surge_login, surge_token] + when: + branch: main + path: + exclude: ['*.md', '.gitea/*'] + event: ['push'] + docker: image: woodpeckerci/plugin-docker-buildx settings: @@ -24,16 +37,3 @@ pipeline: path: exclude: ['*.md', '.gitea/*'] event: ['push'] - - deploy: - image: node:alpine - commands: - - npm install surge - - cp dist/index.html dist/200.html - - npx surge ./dist hyperpipe.surge.sh - secrets: [surge_login, surge_token] - when: - branch: main - path: - exclude: ['*.md', '.gitea/*'] - event: ['push']