Create auto deploys for staging #171
13
.drone.yml
13
.drone.yml
|
@ -30,6 +30,19 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- npm run export
|
- 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:
|
trigger:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
|
|
Loading…
Reference in New Issue