scribase-mail-studio/.github/workflows/release-python-package.yml
caelum0x efa8030c8b feat(selfhost): one-command self-host with compose, Mailpit and GHCR image
compose.yml (web, Postgres, Redis, Mailpit profile), scripts/selfhost.sh
generates .env secrets and starts the stack. Publish workflow builds
amd64/arm64 on native runners and pushes ghcr.io/caelum0x/scribase-mail-studio.
Upstream SDK release workflows are manual-only in this fork.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 04:48:18 +03:00

41 lines
1013 B
YAML

name: Publish Python package
# Inherited from upstream useSend, which publishes its own SDK packages.
# Manual only in this fork so nothing is published under upstream names.
on:
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/python-sdk
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: snok/install-poetry@v1
with:
version: "1.8.2"
virtualenvs-create: false
- name: Build package with Poetry
run: poetry build --no-interaction
- name: List contents of dist
run: ls -la dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: packages/python-sdk/dist