Skip to content

Commit 64e062d

Browse files
committed
Release action now uses the same build command as the preview build
The 0.7.0 release failed because this was using the old setup.py method. It didn't generate the preditor/version.py file which broke that release. The merge request preview builds were using build and generated correctly.
1 parent a7ff2f3 commit 64e062d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: PyPi Release
22

33
on:
44
release:
@@ -23,11 +23,22 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install --upgrade setuptools wheel twine
26+
python -m pip install --upgrade build setuptools wheel twine
2727
2828
- name: Build wheel
2929
run: |
30-
python setup.py build bdist_wheel
30+
python -m build --wheel --sdist
31+
32+
# Upload the built pip packages so we can inspect them
33+
- name: Upload packages.
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: pip-packages
37+
path: |
38+
dist/preditor-*.whl
39+
dist/preditor-*.tar.gz
40+
# This is only used if there is a problem with the next step
41+
retention-days: 1
3142

3243
- name: Publish to PyPI
3344
env:

0 commit comments

Comments
 (0)