Only run deploy_staging on main branch

This commit is contained in:
Aditya Thakral 2021-06-07 21:15:21 -04:00
parent 699a0836b4
commit 66f9d93d8e
1 changed files with 4 additions and 1 deletions

View File

@ -43,4 +43,7 @@ deploy_staging:
stage: .post
needs: ["staging"]
script:
- 'curl -XPOST -H "Authorization: Basic $STAGING_SECRET" "https://csclub.uwaterloo.ca/$BASE_PATH"'
- 'curl -XPOST -H "Authorization: Basic $STAGING_SECRET" "https://csclub.uwaterloo.ca/$BASE_PATH"'
only:
refs:
- main