Create auto deploys for staging (#171)
continuous-integration/drone/push Build is passing Details

https://csclub.uwaterloo.ca/~a3thakra/csc/main/

Reviewed-on: #171
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
This commit is contained in:
Aditya Thakral 2021-08-23 13:50:43 -04:00
parent a8cae99c11
commit 40cc58df18
1 changed files with 13 additions and 0 deletions

View File

@ -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: