From 40cc58df18ff8229e961f86da9dfe46bb1c54c17 Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Mon, 23 Aug 2021 13:50:43 -0400 Subject: [PATCH] Create auto deploys for staging (#171) https://csclub.uwaterloo.ca/~a3thakra/csc/main/ Reviewed-on: https://git.csclub.uwaterloo.ca/www/www-new/pulls/171 Co-authored-by: Aditya Thakral Co-committed-by: Aditya Thakral --- .drone.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.drone.yml b/.drone.yml index a5becb8b..beafe344 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,6 +30,19 @@ 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/"' + when: + branch: + - main + trigger: event: exclude: