diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index f249e28..aa11460 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -1,16 +1,18 @@ # name: Create and publish a Docker image -# Configures this workflow to run every time a change is pushed to the branch called `release`. on: - release: - types: [published] -# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. + workflow_run: + workflows: ["Upload to PyPI"] + types: + - completed + # release: + # types: [published] + env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} -# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: build-and-push-image: runs-on: ubuntu-latest diff --git a/.github/workflows/pypi-upload.yml b/.github/workflows/pypi-upload.yml index b5948e4..49c9e44 100644 --- a/.github/workflows/pypi-upload.yml +++ b/.github/workflows/pypi-upload.yml @@ -1,4 +1,4 @@ -name: Build and Publish +name: Upload to PyPI on: release: diff --git a/API/requirements.txt b/API/requirements.txt index 13839c1..c89edc6 100644 --- a/API/requirements.txt +++ b/API/requirements.txt @@ -1,4 +1,4 @@ fastapi==0.103.2 uvicorn==0.22.0 -fairpredictor # always install latest +fairpredictor==0.0.31 tflite-runtime==2.14.0 \ No newline at end of file