Skip to content

Commit

Permalink
Merge pull request #71 from blockchain-certificates/chore/fix-ci-sema…
Browse files Browse the repository at this point in the history
…ntic-release

chore(CI): attempt at fixing semantic release by changing execution c…
  • Loading branch information
lemoustachiste authored Oct 21, 2024
2 parents 234e2eb + 5d47bf7 commit 00d1431
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ python:
install: pip install tox-travis
script: tox
after_success:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh semantic-release.sh; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh release_npm_package.sh; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then . ./semantic-release.sh; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then . ./release_npm_package.sh; fi'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version_variables = [
"cert_schema/__version__.py:__version__",
'npm/package.json:"version"'
]
build_command = "sh release_package.sh"
build_command = ". release_package.sh"
upload_to_pypi = true

[tool.semantic_release.branches.main]
Expand Down
3 changes: 2 additions & 1 deletion release_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

rm -rf dist
python3 setup.py sdist bdist_wheel
twine upload dist/*
keyring --disable
twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD --verbose

0 comments on commit 00d1431

Please sign in to comment.