Skip to content

Merge pull request #25 from UbiOps/release/4.12.0 #23

Merge pull request #25 from UbiOps/release/4.12.0

Merge pull request #25 from UbiOps/release/4.12.0 #23

Workflow file for this run

name: PyPi
# Controls when the workflow will run
on:
# Triggers the workflow on tag create
push:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
PYPI_REPOSITORY: ${{ vars.PYPI_REPOSITORY }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine wheel
- name: Upload to PyPi
run: |
rm -rf dist
python setup.py sdist bdist_wheel
python -m twine upload --username $PYPI_USERNAME --password $PYPI_PASSWORD --repository $PYPI_REPOSITORY dist/*