forked from OllisGit/OctoPrint-SpoolManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (28 loc) · 873 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##
## Simple script to build a zip file of the whole repository
##
script:
# debug - echo 'Hello World'
- export PLUGIN_VERSION=$(cat setup.py | grep 'plugin_version = "*"' | cut -d '"' -f2)
- zip -r master.zip * -x 3rdPartySoftware\* testdata\*
# debug - ls -al
## see "Fix travis automatic build and deploy"
## https://github.com/oliexdev/openScale/pull/121
## https://github.com/oliexdev/openScale/pull/121/files
before_deploy:
- git tag -f travis-build
- git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- git push -f gh travis-build
- git remote remove gh
deploy:
name: "V${PLUGIN_VERSION}-draft"
#prerelease: true
draft: true
provider: releases
api_key: "${GITHUB_TOKEN}"
file: "master.zip"
overwrite: true
skip_cleanup: true
target_commitish: $TRAVIS_COMMIT
on:
tags: false