Skip to content

Commit 5bf4c7d

Browse files
committed
separate deployment steps
1 parent d7c7fe0 commit 5bf4c7d

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

.travis.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,35 @@ jobs:
3535
install: pip install sphinx
3636
script:
3737
- sphinx-build -Ean -b html -j auto -D todo_include_todos=0 ./doc ./doc/_build/html
38-
- touch ./doc/_build/html/.nojekyll
39-
- pushd ./doc/_build/html ; zip -r ../../../${TRAVIS_TAG} . ; popd
38+
- pushd ./doc/_build/html ; zip -r ../../../${TRAVIS_TAG}.zip . ; popd
4039
- ls -la .
41-
deploy:
42-
provider: pages
43-
skip_cleanup: true
44-
github_token: $GITHUB_TOKEN
45-
keep_history: false
46-
local_dir: ./doc/_build/html
47-
on:
48-
tags: true
4940
deploy:
5041
provider: releases
5142
skip_cleanup: true
5243
api_key: $GITHUB_TOKEN
5344
files:
54-
- doc.zip
45+
- ${TRAVIS_TAG}.zip
5546
draft: true
5647
on:
5748
tags: true
5849

59-
- stage: deploy to PyPI (Test)
50+
- stage: deploy documentation
51+
if: tag is present
52+
python: 3.6
53+
install: pip install sphinx
54+
script:
55+
- sphinx-build -Ean -b html -j auto -D todo_include_todos=0 ./doc ./doc/_build/html
56+
- touch ./doc/_build/html/.nojekyll
57+
deploy:
58+
provider: pages
59+
skip_cleanup: true
60+
github_token: $GITHUB_TOKEN
61+
keep_history: false
62+
local_dir: ./doc/_build/html
63+
on:
64+
tags: true
65+
66+
- stage: deploy to pypi (test)
6067
if: tag is present
6168
script: # Cancel out default script
6269
-

src/sasctl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
55
# SPDX-License-Identifier: Apache-2.0
66

7-
__version__ = '0.9.6-alpha2'
7+
__version__ = '0.9.6-alpha3'
88
__author__ = 'SAS'
99
__credits__ = ['Lucas De Paula, Peter Tobac, Jon Walker']
1010
__license__ = 'Apache 2.0'

0 commit comments

Comments
 (0)