Skip to content

Specify user agent when using the Cirro CLI & controller cleanup (#175) #750

Specify user agent when using the Cirro CLI & controller cleanup (#175)

Specify user agent when using the Cirro CLI & controller cleanup (#175) #750

Workflow file for this run

name: Build Python package
on:
release:
types:
- published
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install deps
run: |
python -m pip install --upgrade pip setuptools
pip install poetry
- name: Test install
run: |
poetry install --all-extras
poetry run cirro --help
- name: Build python package
run: |
poetry build
- name: Publish python package
if: github.event_name == 'release'
run: |
poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}