Skip to content

Commit

Permalink
feat(pypi): added functionality to push to pypi as workflow.core
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed Jul 4, 2024
1 parent deddc8d commit fc811d5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "work.flow"
name = "workflow.core"
version = "1.4.0"
description = "Workflow Core"
authors = ["Shiny Brar <[email protected]>"]
Expand Down

0 comments on commit fc811d5

Please sign in to comment.