Skip to content

Commit

Permalink
Merge pull request #277 from blockchain-certificates/chore/fix-semant…
Browse files Browse the repository at this point in the history
…ic-release

Chore/fix semantic release
  • Loading branch information
lemoustachiste authored Mar 7, 2024
2 parents 18cfd3f + d02caed commit 3ce03fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
- '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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3ce03fd

Please sign in to comment.