From ba760b19a21eb39d4d456293e2d322d80125ad58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Nie=C5=BCurawski?= Date: Wed, 24 Mar 2021 14:46:53 +0100 Subject: [PATCH] Add github action for LightGBM --- .github/workflows/neptune-client.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/neptune-client.yml b/.github/workflows/neptune-client.yml index 47b9c1661..eec6a943a 100644 --- a/.github/workflows/neptune-client.yml +++ b/.github/workflows/neptune-client.yml @@ -64,6 +64,25 @@ jobs: user: __token__ password: ${{ secrets.PYPI_API_TOKEN_SKLEARN }} packages_dir: integrations/sklearn/dist + publish_lightgbm: + needs: test + runs-on: ubuntu-latest + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/lightgbm') + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Build and test + run : | + cd integrations/lightgbm + python setup.py sdist + - name: Publish package + uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN_LIGTHGBM }} + packages_dir: integrations/lightgbm/dist publish: needs: test