Skip to content

v9.9.0

v9.9.0 #146

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Publish Pyatlan Package
on:
release:
types: [ published ]
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group dev
- name: check tag
id: check-tag
run: uv run python check_tag.py
- name: Build and publish to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build
uv publish
- name: Build Lambda layer
run: |
uv pip install --target=python .
- uses: actions/upload-artifact@v4
with:
name: lambda-layer
path: ./python