Skip to content

Commit aac9618

Browse files
authored
Merge pull request #470 from The-Strategy-Unit/alter_dev_build_workflow
ensures the .whl will be pip installable.
2 parents cca0631 + bc8f642 commit aac9618

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build_app.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ jobs:
2020
enable-cache: true
2121
cache-dependency-glob: "uv.lock"
2222

23-
- name: Build
23+
- name: Build (release)
24+
if: github.ref != 'refs/heads/main'
2425
run: uv build
2526

26-
- name: Rename wheel if dev
27+
- name: Build (dev)
2728
if: github.ref == 'refs/heads/main'
28-
run: mv $(ls dist/*.whl) dist/nhp_model-dev-py3-none-any.whl
29+
env:
30+
SETUPTOOLS_SCM_PRETEND_VERSION: 0.dev0
31+
run: uv build
2932

3033
- name: Generate artifact
3134
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)