Integration with extended mlclouds models #20
Workflow file for this run
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: Upload to PyPi | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
# IMPORTANT: this permission is mandatory for trusted publishing | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies and Build | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools build | |
python -m build --wheel --outdir dist/ . | |
- name: Check distribution files | |
run: | | |
pip install twine | |
twine check dist/* | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 |