Skip to content

Commit

Permalink
[ci] add the mlora_cli tool auto push
Browse files Browse the repository at this point in the history
  • Loading branch information
yezhengmao1 authored Jul 3, 2024
1 parent 147f6eb commit 782eb0b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-mlora-cli.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 782eb0b

Please sign in to comment.