From 40aa200cbbdf1a8f92617cd2cc165cea907b64f7 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Tue, 5 Jul 2022 10:45:31 +0100 Subject: [PATCH] feat(ci): Deploy built site --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index c13f921..098548f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,15 @@ steps: - pnpm install --frozen-lockfile - pnpm build - pnpm format:check +- name: Deploy site + image: alpine + commands: + - apk add curl ca-certificates zip + - cd dist && zip -r ../deploy.zip * && cd .. + - 'curl -F file=@deploy.zip -H "Authorization: $DEPLOY_TOKEN" https://projects.ashhhleyyy.dev/chss' + environment: + DEPLOY_TOKEN: + from_secret: deploy_token trigger: event: [push]