Skip to content

Commit

Permalink
Merge pull request #4 from k4rimDev/dev
Browse files Browse the repository at this point in the history
feat: added github action
  • Loading branch information
k4rimDev authored Oct 8, 2024
2 parents ff675b9 + ae5721a commit 6f78434
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ description = "A lightweight background task library in Python."
authors = ["karim06-byte <[email protected]>", "k4rimdev <[email protected]>"]
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"
Expand Down

0 comments on commit 6f78434

Please sign in to comment.