From ae5721aa1906f735b564955bdcf89215c41a99ec Mon Sep 17 00:00:00 2001 From: karim06-byte Date: Tue, 8 Oct 2024 11:40:33 +0400 Subject: [PATCH] feat: added github action --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..34210a7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish to PyPI + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Check out the code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install Poetry + run: curl -sSL https://install.python-poetry.org | python3 - + + - name: Install dependencies + run: poetry install --no-dev + + - name: Build the package + run: poetry build + + - name: Publish to PyPI + env: + POETRY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: poetry publish --build --username __token__ --password $POETRY_PASSWORD diff --git a/pyproject.toml b/pyproject.toml index b8bc5f0..6fdb4d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,10 @@ description = "A lightweight background task library in Python." authors = ["karim06-byte ", "k4rimdev "] license = "Apache" readme = "README.md" +homepage = "https://github.com/k4rimDev/QueueTeePie" +repository = "https://github.com/k4rimDev/QueueTeePie" +keywords = ["task", "queue", "background", "tasks", "async"] + [tool.poetry.dependencies] python = "^3.10"