diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..96451b3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Upload Python Package + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.9" + - run: pip install pip --upgrade + - name: Setup Poetry + uses: abatilo/actions-poetry@v2 + with: + poetry-version: "1.3.1" + - name: Install dependencies + run: | + poetry install --no-interaction --no-root --all-extras -vvv + poetry build + - name: Publish + env: + POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + poetry publish diff --git a/pyproject.toml b/pyproject.toml index 9cee980..b45529b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ requires = [ "poetry-core",] build-backend = "poetry.core.masonry.api" [tool.poetry] -name = "BenchLLM" -version = "0.0.1" +name = "benchllm" +version = "0.1.0" description = "Tool for testing LLMs" homepage = "https://github.com/v7labs/benchllm" authors = [ "Simon Edwardsson ", "Andrea Azzini "]