Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
thautwarm committed Feb 24, 2020
1 parent 1d4ee9f commit 5ed13b0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -76,7 +76,7 @@ before_deploy:

deploy:
provider: releases
api_key: $RELEASE_AUTH_KEY
api_key: $GITHUB_TOKEN
file: $ZIP_FILE
skip_cleanup: true
draft: true
6 changes: 0 additions & 6 deletions travis-env.py
@@ -1,16 +1,10 @@
from base64 import b32decode
import sys
import os

def auth():
AUTH = os.environ['RELEASE_AUTH']
sys.stdout.write(b32decode(AUTH.encode('utf8')).decode('utf8').strip())

def platform():
from distutils.util import get_platform
sys.stdout.write(get_platform())

{
'auth': auth,
'plat': platform
}[sys.argv[1]]()
1 change: 0 additions & 1 deletion travis-env.sh
@@ -1,5 +1,4 @@
echo "==================setting travis release uploading environment================"
export RELEASE_AUTH_KEY="`python travis-env.py auth`"
export DIST_FILE="`stack path --dist-dir`/build/pspy-blueprint/pspy-blueprint"
cp $DIST_FILE ./pspy-blueprint
export RELEASE_TAG="`python travis-env.py plat`"
Expand Down

0 comments on commit 5ed13b0

Please sign in to comment.