Skip to content

Remove test steps and simplify workflow #3

Remove test steps and simplify workflow

Remove test steps and simplify workflow #3

Workflow file for this run

name: Build and Publish CloudbandPy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install build tools
run: python -m pip install --upgrade pip setuptools wheel twine
- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*