Skip to content

Commit 5c2a0ff

Browse files
committed
Set up PyPI uploads
1 parent 311e576 commit 5c2a0ff

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ jobs:
244244
245245
- name: Build Wheel
246246
run: |
247+
py -3 -m pip install -U pip
247248
py -3 -m pip install -U build wheel hatch
248249
py -3 -m hatch version $(git describe --tags --abbrev=0)
249250
py -3 -m build --wheel
@@ -284,6 +285,7 @@ jobs:
284285
285286
- name: Build Wheel
286287
run: |
288+
python3 -m pip install -U pip
287289
python3 -m pip install -U build wheel hatch
288290
python3 -m hatch version $(git describe --tags --abbrev=0)
289291
python3 -m build --wheel
@@ -322,6 +324,7 @@ jobs:
322324
323325
- name: Build Wheel
324326
run: |
327+
python3 -m pip install -U pip
325328
python3 -m pip install -U build wheel hatch
326329
python3 -m hatch version $(git describe --tags --abbrev=0)
327330
python3 -m build --wheel
@@ -397,3 +400,13 @@ jobs:
397400
files: |
398401
*.zip
399402
*.whl
403+
404+
- name: Publish To PyPI
405+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
406+
env:
407+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
408+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
409+
run: |
410+
python3 -m pip install -U pip
411+
python3 -m pip install -U twine
412+
python3 -m twine upload --verbose *.whl

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "simplexui"
2+
name = "simplex-solver"
33
dynamic = [
44
"version"
55
]

simplexui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
SIMPLEX_UI = None
2222
SIMPLEX_UI_ROOT = None
23-
__version__ = "v0.0.0"
23+
__version__ = "v0.0.1-dev"
2424

2525

2626
def runSimplexUI():

0 commit comments

Comments
 (0)