From 59566dfaa1c61ba8ed20da7a42cbccb52856e95c Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Tue, 23 Jan 2024 13:39:06 +0100 Subject: [PATCH] Add build for dev image --- .github/workflows/build.yaml | 4 ++++ .github/workflows/prep-release.yaml | 28 +++++++++++++++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 68581eb20..0765c5f80 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + pull_request: workflow_dispatch: env: @@ -53,3 +54,6 @@ jobs: - name: Build components run: ./scripts/build_components.sh --cache -t $GITHUB_SHA -t dev + + - name: Build base image + run: ./scripts/build_base_image.sh -t dev diff --git a/.github/workflows/prep-release.yaml b/.github/workflows/prep-release.yaml index 3c3d04b9a..1217e1429 100644 --- a/.github/workflows/prep-release.yaml +++ b/.github/workflows/prep-release.yaml @@ -1,8 +1,8 @@ -name: [TEST RUN] Pushing fondant base image +name: Build Python 🐍 distributions 📦 and publish to TestPyPI on: push: - branches: - - "feature/build-fondant-base-image" + tags: + - '[0-9]+.[0-9]+.*[0-9]+*' env: AWS_REGION : us-east-1 @@ -56,5 +56,27 @@ jobs: with: registry-type: public + - name: Build components + run: ./scripts/build_components.sh -t $GITHUB_REF_NAME + + - name: Build data explorer + run: ./scripts/build_explorer.sh -t $GITHUB_REF_NAME + - name: Build base image run: ./scripts/build_base_image.sh -t $GITHUB_REF_NAME + + - name: Update version in pyproject.toml with tag version + run: sed -i "s/^version = .*/version = '${{github.ref_name}}'/" pyproject.toml + + - name: Build a binary wheel and a source tarball + run: | + pip install poetry + ./scripts/pre-build.sh + poetry build + + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@v1.8.6 + with: + name: testpypi + repository_url: https://test.pypi.org/legacy/ + url: https://test.pypi.org/p/fondant