diff --git a/.travis.yml b/.travis.yml index 28b66365..0e8b3421 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,10 +6,12 @@ python: install: pip install tox-travis script: tox after_success: - - pip install python-semantic-release==7.34.6 + - pip install python-semantic-release - git config user.name botcerts - git config user.email botcerts@learningmachine.com - - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then semantic-release publish; fi' # trigger semantic release only on merge build + - git branch + - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git checkout master; fi' # trigger semantic release only on merge build + - semantic-release version && semantic-release publish after_script: - nvm install 16 - sh prepare-vc-compliance-tests-config.sh diff --git a/pyproject.toml b/pyproject.toml index 68e26ba8..5bcc8622 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ tag_format = "v{version}" version_variables = [ "cert_issuer/__init__.py:__version__" ] -build_command = "python3 setup.py sdist bdist_wheel" +build_command = "sh release_package.sh" upload_to_pypi = true [tool.semantic_release.branches.main]