Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit c532e00

Browse files
authored
Merge pull request #263 from CogStack/fix-release-ci-client-packagedir
fix release builds
2 parents 2c463d8 + 00be12b commit c532e00

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/qa.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
cd client
3535
python -m pytest tests/ -v
3636
37+
- name: Bump version for TestPyPI
38+
run: sed -i "s/^version = .*/version = \"1.0.0.dev$(date +%s)\"/" client/pyproject.toml
39+
3740
- name: Build client package
3841
run: |
3942
cd client
@@ -44,6 +47,7 @@ jobs:
4447
with:
4548
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
4649
repository_url: https://test.pypi.org/legacy/
50+
packages_dir: client/dist
4751

4852
# Build and test webapp container
4953
build-and-push:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
cd client
3838
python -m pytest tests/ -v
3939
40+
- name: Bump version for PyPI
41+
run: sed -i "s/^version = .*/version = \"1.0.0.dev$(date +%s)\"/" client/pyproject.toml
42+
4043
- name: Build client package
4144
run: |
4245
cd client
@@ -47,6 +50,7 @@ jobs:
4750
uses: pypa/[email protected]
4851
with:
4952
password: ${{ secrets.PYPI_API_TOKEN }}
53+
packages_dir: client/dist
5054

5155
# Build and test webapp container
5256
build-and-push:

0 commit comments

Comments
 (0)