Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit e208a28

Browse files
authored
fix: ditch twine (#67)
* fix(deps): ditch twine and release through poetry * fix: fail release when step fails
1 parent a1c19f2 commit e208a28

File tree

3 files changed

+6
-434
lines changed

3 files changed

+6
-434
lines changed

assets/release/release-all.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
35
function cd_to_root_directory () {
46
cd `dirname ${0}`/../../
57
}
@@ -44,9 +46,9 @@ function publish_semantic_release () {
4446
p run semantic-release publish
4547
echo "Ran semantic-release publish"
4648

47-
echo "Releasing to PyPi through Twine"
48-
p run twine upload dist/* --username __token__ --password ${PYPI_TOKEN}
49-
echo "Released to PyPi through Twine"
49+
echo "Releasing to PyPi"
50+
POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN} p publish
51+
echo "Released to PyPi"
5052

5153
echo "Published release"
5254
}

0 commit comments

Comments
 (0)