fix(ci): Fail workflow if deploy fails

This commit is contained in:
Ashhhleyyy 2022-07-05 10:55:00 +01:00
parent c9dfebb6a7
commit 85b7db835f
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -19,7 +19,7 @@ steps:
commands:
- apk add curl ca-certificates zip
- cd dist && zip -r ../deploy.zip * && cd ..
- 'curl -F file=@deploy.zip -H "Authorization: $DEPLOY_TOKEN" https://projects.ashhhleyyy.dev/chss'
- 'curl --fail -F file=@deploy.zip -H "Authorization: $DEPLOY_TOKEN" https://projects.ashhhleyyy.dev/chss'
environment:
DEPLOY_TOKEN:
from_secret: deploy_token