@@ -81,13 +81,15 @@ jobs:
81
81
python-version : " 3.8"
82
82
- name : Install pypa/build and pypa/twine
83
83
run : python3 -m pip install build twine --user
84
- - name : Build a binary wheel
85
- run : python3 -m build
84
+ - name : Build a binary wheel & Inject build props
85
+ run : python3 -m tox -e build
86
86
- name : Publish to Internal PyPI
87
87
env :
88
+ GUIDELLM_BUILD_TYPE : dev
89
+ GUIDELLM_BUILD_NUMBER : ${{ github.event.pull_request.number }}
88
90
TWINE_USERNAME : ${{ secrets.INTERNAL_PYPI_USERNAME }}
89
91
TWINE_PASSWORD : ${{ secrets.INTERNAL_PYPI_PASSWORD }}
90
- run : python -m twine upload --repository-url ${{INTERNAL_PYPI_REPOSITORY_URL}} dist/* --version 0.1.0.rc
92
+ run : python -m twine upload --repository-url ${{ secrets. INTERNAL_PYPI_REPOSITORY_URL }} dist/*
91
93
92
94
publish-final-release :
93
95
name : Publish Final Release
@@ -101,10 +103,12 @@ jobs:
101
103
python-version : " 3.8"
102
104
- name : Install pypa/build and pypa/twine
103
105
run : python3 -m pip install build twine --user
104
- - name : Build a binary wheel
105
- run : python3 -m build
106
+ - name : Build a binary wheel & Inject build props
107
+ run : python3 -m tox build
106
108
- name : Publish to Public PyPI
107
109
env :
110
+ GUIDELLM_BUILD_TYPE : release
111
+ GUIDELLM_BUILD_NUMBER : ${{ github.event.pull_request.number }}
108
112
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
109
113
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
110
114
run : python -m twine upload dist/*
0 commit comments