diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c1ae01e..348bc03 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -51,7 +51,7 @@ jobs: with: install: true - - name: Perform Dockerhub Login + name: Perform DockerHub Login if: ${{ steps.release-please.outputs.release_created }} uses: docker/login-action@v3 with: @@ -83,3 +83,26 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max + - + name: Install Poetry + if: ${{ steps.release-please.outputs.release_created }} + run: | + pipx install poetry + - + name: Setup Python + if: ${{ steps.release-please.outputs.release_created }} + uses: actions/setup-python@v4 + with: + python-version: 3.9 + cache: poetry + - + name: Push to PyPI + if: ${{ steps.release-please.outputs.release_created }} + env: + WORKFLOW_PYPI_TOKEN: ${{ secrets.WORKFLOW_CORE_PYPI_TOKEN }} + run: | + poetry config virtualenvs.create true + poetry config virtualenvs.in-project false + poetry install + poetry config pypi-token.pypi $WORKFLOW_PYPI_TOKEN + poetry publish --build --verbose diff --git a/README.md b/README.md index 204ea1c..bb427fa 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,18 @@ For more information, please refer to the [Workflow documentation](https://chime ## Getting Started -To get started with the Workflow project, you need to have Python 3.8.1 or later installed. You can then install the project's dependencies using Poetry: +To get started with the Workflow, you need to have Python 3.8.1 or later installed. You can then install the project's dependencies using Poetry: + +### Install from PyPI ```bash -git clone https://github.com/chimefrb/workflow.git -cd workflow -poetry install +pip install workflow.core +``` + +### Install from Source + +```bash +pip install git+https://github.com/chimefrb/workflow.git ``` Alternatively, you can add the Workflow project as a dependency to your own project using Poetry: diff --git a/pyproject.toml b/pyproject.toml index e77d75d..bef36b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "work.flow" +name = "workflow.core" version = "1.4.0" description = "Workflow Core" authors = ["Shiny Brar "]