From 782eb0b31d7cab8bfd819aa9ca05dbff5b8e7992 Mon Sep 17 00:00:00 2001 From: YeZhengMao Date: Wed, 3 Jul 2024 21:51:15 +0800 Subject: [PATCH] [ci] add the mlora_cli tool auto push --- .github/workflows/publish-mlora-cli.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-mlora-cli.yml diff --git a/.github/workflows/publish-mlora-cli.yml b/.github/workflows/publish-mlora-cli.yml new file mode 100644 index 00000000..702f0f1e --- /dev/null +++ b/.github/workflows/publish-mlora-cli.yml @@ -0,0 +1,35 @@ +name: Create and publish mlora_cli tool + +on: workflow_dispatch + +permissions: + contents: read + +jobs: + mlora_cli-pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + attestations: write + id-token: write + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v3 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build setuptools twine + + - name: Build the package + run: | + ./build.sh + + - name: Publish the package + run: | + twine upload ./dist/mlora_cli* -u __token__ -p ${{ secrets.PYPI_PASSWORD }}