Skip to content

Commit

Permalink
Fixing environment variable issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekokatt committed Aug 16, 2020
1 parent 9d46dd8 commit a3fca9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,7 @@ jobs:
script:
- bash scripts/deploy.sh
env:
secure: "J/lejouS7Usm5iup1IkEoNpzx3wWbx5le1nbKbZzFam4GlZmJBONwAVtTkvjKgWMUsLLtX+mahGY8eq3aJ7PjqZ/QnCN45eYaXhI04VIyPJDijbZ3CedU7gqEfjbE0P2Ib3HDsRB+CmEE5DPrulB3kWfLqZRDf7IV3X6Winmd2BMmGUm1yU4FO1dfLVfxI/DtSlaH+jnXbu7+HhJ0JsSdDoJL2ok/fAxOy6zS5uNh5ux8UVqVADaxpiGo7PLHSGGgx9QWx0jk0W7hesPqf07Ih2jb5bTKh0wOzPoYbw4nbHTCSkR8JDI/RGkk2rae3YtvU0655r4j3D3xNYak9jMLOvcywhxtDZwNwpmwpnW7IixPGgS4WMaEKCzyBTjv2hh6Xh8+lEIlE0jr+vPkkmlrhxZOgFQR88GcNnRfF+zC6oj6lF4tWPnRbFPEjpfwHQufnZ7JrHYve9rpMdalHjjr94hEXucKvOgEdvTQTqgar3/EqZJdjyyAKs0/WoRfUX370LcYvu6nb9v9ETLbFMo68TBY46E4jfG4hArC9rfwDmqZncTwg38GsLdzLfsTG9HvLg0U5TW508jCVN65Xdbzd3PmiYkcp40NbhmvQ6sFP3dc4rMiA0vFw5mPUzHYDxRpSYFSv9h2pVXvIEeNYRnSfpDocNOSXZFLkIQVL0xAyo="
- secure: "ICEfUzrf35MnvzctBV7t54a98zF08Csx4BR2d+oNZsgNcUyDZu9EwyixaI60/tLYNJU5B7O2EpJI5gcLjFbbdcxFy9SRl7bU/TlmNFMZIFcW/6pfZEt/kXQLenV56WYgKVVoDucejVTrlNaPtJ5bLXPdTAOI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VF3I+tSwY/mMkLFmvR5wUAgB1LKhPiQThlVpLdbbBQzyneGryLluDodhJSj3f6dpvr5aTqGTvx8z+nIjoOVNJFOShTc/spLtfZhhpIdexmDszsSIm2BtnG2e8B1yILcC+X5JZVvLRO1WYxSWN25N+HVv8tVaPldG30ZoOBW8dir23dI/nlINDRofjhJmGI1PACLmjnMcMLKdY4QPgJYsvXgGt7YWOPbaOHm0XxghvYVp4gOipIiKl5mQxPcjyGMI3XlesQRai0GZIo5DhfYkQiOT0JJbChZzA8v6WA1me8OoNpEgUHtygU1tjttoCbKNcFjOpvK/UlcvRwFjlT6NhGloOo9C0FaMSe2mBpo4HF01ktFX2KJQjNdKW1eNdr15Cn0dW91Jew8FGMNfK/JU9RKPvqfDzst8P6pULQKjP6nM3U="
4 changes: 3 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
VERSION=${TRAVIS_TAG}
REF=${TRAVIS_COMMIT}

echo "Defined environment variables"
env | grep -oP "^[^=]+" | sort

if [ -z ${GITHUB_TOKEN+x} ]; then echo '$GITHUB_TOKEN environment variable is missing' && exit 1; fi
if [ -z "${GITHUB_TOKEN}" ]; then echo '$GITHUB_TOKEN environment variable is empty' && exit 1; fi
if [ -z ${DEPLOY_WEBHOOK_URL+x} ]; then echo '$DEPLOY_WEBHOOK_URL environment variable is missing' && exit 1; fi
Expand Down Expand Up @@ -29,7 +32,6 @@ ls -ahl dist

echoo "-- Checking generated dists --"
python -m twine check dist/*
env | sort
python -m twine upload --disable-progress-bar --skip-existing dist/* --non-interactive --repository-url https://upload.pypi.org/legacy/

echo "===== SENDING WEBHOOK ====="
Expand Down

0 comments on commit a3fca9f

Please sign in to comment.