Skip to content

Commit

Permalink
Fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
awiddersheim committed Aug 4, 2018
1 parent ec85227 commit 8b74135
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 48 deletions.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ jobs:
at: /tmp/workspace
- checkout
- run: pip install --user tox
- run: /home/circleci/.local/bin/tox -- /tmp/workspace/dist/*
- run: |
export GITHUB_RELEASE_CICD_REPO=$(python setup.py --name)
export GITHUB_RELEASE_CICD_CREATE_TAG="v$(python setup.py --version)"
export GITHUB_RELEASE_CICD_CREATE_MESSAGE=$(git show --no-patch --pretty=format:"%s%n%b" ${CIRCLE_SHA1})
export GITHUB_RELEASE_CICD_CREATE_TARGET=${CIRCLE_SHA1}
/home/circleci/.local/bin/tox -- '/tmp/workspace/dist/*'
workflows:
version: 2
Expand Down
43 changes: 0 additions & 43 deletions release.py

This file was deleted.

7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ commands = python setup.py {posargs} sdist bdist_wheel

[testenv:deploy]
basepython = python3
passenv = CIRCLE_* GITHUB_* TWINE_*
skip_install = true
passenv = GITHUB_* TWINE_*
deps =
pygithub
github-release-cicd
twine
commands =
twine upload --skip-existing {posargs:dist/*}
python release.py {posargs:dist/*}
github_release_cicd create --assets {posargs:dist/*}

0 comments on commit 8b74135

Please sign in to comment.