Create and publish mlora_cli tool #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |