From 579eafd8b45b8006a4205077e14e2db457fedfdf Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Mon, 7 Oct 2024 17:26:53 +0500 Subject: [PATCH] Add workflow --- .woodpecker.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..15b2649 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,16 @@ +when: + - event: manual + - event: push + branch: main + +steps: + - name: hello-world + image: node:current-alpine + commands: + - apk add --no-cache zip curl + - npm install vite -g + - vite build + - (cd dist && zip -r ../project.zip ./*) + - 'curl -s -w "%{http_code}" -X POST -F "zipfile=@project.zip" -H "Authorization: Bearer $API_KEY" https://pages.hadeedahmad.com/pages/$(basename "$PWD") | grep -q 200' + + secrets: [ API_KEY ]