Skip to content

Commit 4c97b24

Browse files
authored
Add a release.sh script to publish to PyPI on version release. (#55)
1 parent d7a1178 commit 4c97b24

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/release.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# Install dependencies
6+
pip install --upgrade twine
7+
8+
# Erase old distribution, if exists
9+
rm -rf dist hpc_launcher.egg-info
10+
11+
# Make tarball
12+
python -m build
13+
14+
# Upload to PyPI
15+
twine upload dist/*

hpc_launcher/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.0.3"

0 commit comments

Comments
 (0)