Skip to content

Commit 43ae920

Browse files
committed
Update with gh release deploy on tag
1 parent 19f976c commit 43ae920

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,16 @@ cache: pip
55
install:
66
- pip install -r requirements.txt
77
script:
8-
- python setup.py sdist
8+
- python setup.py sdist
9+
10+
before_deploy:
11+
- export RELEASE_PKG_FILE=$(ls dist/monitor-exporter-*.tar.gz)
12+
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
13+
deploy:
14+
provider: releases
15+
api_key:
16+
secure: $GITHUB_ACCESS_TOKEN
17+
file_glob: true
18+
file: "${RELEASE_PKG_FILE}"
19+
on:
20+
tags: true

0 commit comments

Comments
 (0)