diff --git a/.github/workflows/ligthtwood.yml b/.github/workflows/lightwood.yml similarity index 83% rename from .github/workflows/ligthtwood.yml rename to .github/workflows/lightwood.yml index b9c7b9296..9e87fb1fd 100644 --- a/.github/workflows/ligthtwood.yml +++ b/.github/workflows/lightwood.yml @@ -46,6 +46,7 @@ jobs: deploy: runs-on: ubuntu-latest + environment: PublishCI needs: test if: github.ref == 'refs/heads/stable' || github.event_name == 'release' steps: @@ -57,11 +58,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + pip install poetry + - name: Build + run: poetry build + - name: Publish env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + POETRY_HTTP_BASIC_PYPI_USERNAME: __token__ + POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist - twine upload dist/* + poetry publish --dry-run + poetry publish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index fc6cf8b2d..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Release Lightwood - -on: - release: - types: [ published ] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist - twine upload dist/* \ No newline at end of file diff --git a/lightwood/__about__.py b/lightwood/__about__.py index 72c02c861..7a82050a4 100644 --- a/lightwood/__about__.py +++ b/lightwood/__about__.py @@ -1,6 +1,6 @@ __title__ = 'lightwood' __package_name__ = 'lightwood' -__version__ = '24.3.3.0' +__version__ = '24.3.3.1' __description__ = "Lightwood is a toolkit for automatic machine learning model building" __email__ = "community@mindsdb.com" __author__ = 'MindsDB Inc' diff --git a/pyproject.toml b/pyproject.toml index df0e41615..a20cf7c25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "lightwood" -version = "24.3.3.0" +version = "24.3.3.1" description = "Lightwood is Legos for Machine Learning." authors = ["MindsDB Inc."] license = "GPL-3.0-only"