Skip to content

Commit

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

chore(CI): change twine upload prompt place to access env var
  • Loading branch information
lemoustachiste authored Oct 22, 2024
2 parents a9039e4 + 48059c5 commit 023d197
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ tag_format = "v{version}"
version_variables = [
"cert_issuer/__init__.py:__version__"
]
build_command = "sh release_package.sh"
upload_to_pypi = true

[tool.semantic_release.branches.main]
match = "(main|master)"
Expand Down
2 changes: 1 addition & 1 deletion release_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
rm -rf dist
python3 setup.py sdist bdist_wheel
keyring --disable
twine upload dist/* -u%$TWINE_USERNAME% -p%$TWINE_PASSWORD% --verbose
twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD --verbose
2 changes: 1 addition & 1 deletion semantic-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ git config user.name botcerts
git config user.email botcerts@learningmachine.com
git checkout master
semantic-release version
semantic-release publish
source ./release_package.sh

0 comments on commit 023d197

Please sign in to comment.