Skip to content

Bump actions/checkout from 4 to 6 (#3) #5

Bump actions/checkout from 4 to 6 (#3)

Bump actions/checkout from 4 to 6 (#3) #5

Workflow file for this run

name: Publish Python 🐍 distribution 📦 to PyPI on tag
on:
push:
tags:
- '*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install uv and build tools
run: |
pip install uv
uv pip install --system build twine
- name: Install package dependencies
run: |
uv pip install --system .
- name: Test SDK imports
run: |
python -c "import rootly_sdk; print('SDK imports successfully')"
- name: Build package
run: |
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*