mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
42d6877784
commit
da9be66c7b
1 changed files with 11 additions and 8 deletions
19
.travis.yml
19
.travis.yml
|
|
@ -30,6 +30,17 @@ jobs:
|
|||
- export ALIAS=`echo $TRAVIS_COMMIT | cut -c 1-7`
|
||||
- datasette publish nowv1 fixtures.db -m fixtures.json --token=$NOW_TOKEN --branch=$TRAVIS_COMMIT --version-note=$TRAVIS_COMMIT --name=datasette-latest-$ALIAS --alias=latest.datasette.io --alias=$ALIAS.datasette.io
|
||||
- stage: release tagged version
|
||||
if: tag IS present
|
||||
python: 3.6
|
||||
deploy:
|
||||
- provider: pypi
|
||||
user: simonw
|
||||
distributions: bdist_wheel
|
||||
password: ${PYPI_PASSWORD}
|
||||
on:
|
||||
branch: master
|
||||
tags: true
|
||||
- stage: publish docker image
|
||||
if: tag IS present
|
||||
python: 3.6
|
||||
script:
|
||||
|
|
@ -43,11 +54,3 @@ jobs:
|
|||
- docker build -f Dockerfile -t $REPO:$TRAVIS_TAG .
|
||||
- docker tag $REPO:$TRAVIS_TAG $REPO:latest
|
||||
- docker push $REPO
|
||||
deploy:
|
||||
- provider: pypi
|
||||
user: simonw
|
||||
distributions: bdist_wheel
|
||||
password: ${PYPI_PASSWORD}
|
||||
on:
|
||||
branch: master
|
||||
tags: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue