Skip to content

Commit

Permalink
Added upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Dec 17, 2023
1 parent ebd8ceb commit 3f37fe2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/pypi-upload
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

version=$(cat VERSION)
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m build

if [ -f dist/janus_swi-${version}.tar.gz ]; then
twine upload dist/janus_swi-${version}.tar.gz
else
echo "ERROR: Failed to create dist/janus_swi-${version}.tar.gz"
exit 1
fi

0 comments on commit 3f37fe2

Please sign in to comment.