mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
f0c17229b7
commit
438244c285
1 changed files with 3 additions and 3 deletions
|
|
@ -17,10 +17,10 @@ jobs:
|
|||
- pip install .
|
||||
- npm install -g now
|
||||
- python tests/fixtures.py fixtures.db fixtures.json
|
||||
- echo '{"name":"datasette-latest","alias":"latest.datasette.io"}' > now.json
|
||||
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`
|
||||
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"latest.datasette.io\"}" > now.json
|
||||
- datasette publish now fixtures.db -m fixtures.json --token=$NOW_TOKEN --branch=$TRAVIS_COMMIT --version-note=$TRAVIS_COMMIT
|
||||
- now alias --token=$NOW_TOKEN
|
||||
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`
|
||||
- echo "{\"name\":\"datasette-latest\",\"alias\":\"$ALIAS.datasette.io\"}" > now.json
|
||||
- echo "{\"name\":\"datasette-latest-$ALIAS\",\"alias\":\"$ALIAS.datasette.io\"}" > now.json
|
||||
- now alias --token=$NOW_TOKEN
|
||||
on: master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue