mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Only deploy latest on push to master (not pull request)
This commit is contained in:
parent
9f9c737fc2
commit
b15f412e04
1 changed files with 1 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ script:
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: deploy latest.datasette.io
|
- stage: deploy latest.datasette.io
|
||||||
|
if: branch = master AND type = push
|
||||||
script:
|
script:
|
||||||
- pip install .
|
- pip install .
|
||||||
- npm install -g now
|
- npm install -g now
|
||||||
|
|
@ -23,7 +24,6 @@ jobs:
|
||||||
- now alias --token=$NOW_TOKEN
|
- now alias --token=$NOW_TOKEN
|
||||||
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"$ALIAS.datasette.io\"}" > now.json
|
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"$ALIAS.datasette.io\"}" > now.json
|
||||||
- now alias --token=$NOW_TOKEN
|
- now alias --token=$NOW_TOKEN
|
||||||
on: master
|
|
||||||
- stage: release tagged version
|
- stage: release tagged version
|
||||||
if: tag IS present
|
if: tag IS present
|
||||||
python: 3.6
|
python: 3.6
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue