Skip to content

Commit 0c82edf

Browse files
committed
Fix release process
1 parent 0021f35 commit 0c82edf

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

.travis.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ script: tox
3434

3535
after_success: codecov
3636

37+
stages:
38+
- test
39+
- name: deploy
40+
if: tag is present
41+
3742
jobs:
3843
include:
3944
- python: "3.5"
@@ -51,29 +56,27 @@ jobs:
5156
node_js: lts/*
5257
cache: npm
5358
- stage: deploy
54-
if: tag IS present
55-
python: 3.7
59+
python: "3.7"
5660
install: skip
5761
script: skip
5862
after_success: skip
59-
60-
before_deploy:
61-
- git stash --all
62-
- ./set_version.py
63-
_deploy_provider: &_deploy_provider
64-
skip_cleanup: true
65-
on:
66-
tags: true
67-
repo: applegrew/django-select2
68-
deploy:
69-
- <<: *_deploy_provider
70-
provider: pypi
71-
distributions: sdist bdist_wheel
72-
user: codingjoe
73-
password:
74-
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
75-
- <<: *_deploy_provider
76-
provider: npm
77-
78-
api_key:
79-
secure: PV38cQx9qhEFkpSdytbM72UzIMCfhpjmRJ8dzT+bCAaOIs5rEcyKN+h1r5ranunCxWyuFsMW4A2iW/SCxnKCR/oPAguuwUbT5ogBXlsskqPFWUxuoTHYMrd+zB+SC6+bMgq+o5ul+kJCYtEkWP6cMlIEzKyTLab7m5PsnDXNVnI=
63+
deploy:
64+
provider: pypi
65+
distributions: sdist bdist_wheel
66+
user: codingjoe
67+
password:
68+
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
69+
- stage: deploy
70+
language: node_js
71+
node_js: lts/*
72+
python: "3.7"
73+
install: skip
74+
script: skip
75+
after_success: skip
76+
skip_cleanup: true
77+
before_deploy:
78+
- ./set_version.py
79+
provider: npm
80+
81+
api_key:
82+
secure: PV38cQx9qhEFkpSdytbM72UzIMCfhpjmRJ8dzT+bCAaOIs5rEcyKN+h1r5ranunCxWyuFsMW4A2iW/SCxnKCR/oPAguuwUbT5ogBXlsskqPFWUxuoTHYMrd+zB+SC6+bMgq+o5ul+kJCYtEkWP6cMlIEzKyTLab7m5PsnDXNVnI=

0 commit comments

Comments
 (0)