Only deploy latest on push to master (not pull request)

This commit is contained in:
Simon Willison 2018-06-17 20:14:32 -07:00
commit b15f412e04
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -13,6 +13,7 @@ script:
jobs:
include:
- stage: deploy latest.datasette.io
if: branch = master AND type = push
script:
- pip install .
- npm install -g now
@ -23,7 +24,6 @@ jobs:
- now alias --token=$NOW_TOKEN
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"$ALIAS.datasette.io\"}" > now.json
- now alias --token=$NOW_TOKEN
on: master
- stage: release tagged version
if: tag IS present
python: 3.6