diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 9e71a032..fbe65280 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -34,6 +34,9 @@ jobs: cd client python -m pytest tests/ -v + - name: Bump version for TestPyPI + run: sed -i "s/^version = .*/version = \"1.0.0.dev$(date +%s)\"/" client/pyproject.toml + - name: Build client package run: | cd client @@ -44,6 +47,7 @@ jobs: with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ + packages_dir: client/dist # Build and test webapp container build-and-push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d7b79d7..8a74751d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,9 @@ jobs: cd client python -m pytest tests/ -v + - name: Bump version for PyPI + run: sed -i "s/^version = .*/version = \"1.0.0.dev$(date +%s)\"/" client/pyproject.toml + - name: Build client package run: | cd client @@ -47,6 +50,7 @@ jobs: uses: pypa/gh-action-pypi-publish@v1.4.2 with: password: ${{ secrets.PYPI_API_TOKEN }} + packages_dir: client/dist # Build and test webapp container build-and-push: