From 1f668451a9934386fb47d4ce79b147292470216c Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Mon, 23 Aug 2021 12:09:27 -0400 Subject: [PATCH] Add auto deploys for staging --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.drone.yml b/.drone.yml index a5becb8b..a3a0926e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,6 +30,16 @@ steps: commands: - npm run export +- name: deploy (staging) + image: node:16 + depends_on: + - export + environment: + TOKEN: + from_secret: STAGING_TOKEN + commands: + - curl -XPOST -H "Authorization: $TOKEN" "https://csclub.uwaterloo.ca/~a3thakra/update-csc/" + trigger: event: exclude: