Skip to content

feat: remove deprecated org_id (#466) #51

feat: remove deprecated org_id (#466)

feat: remove deprecated org_id (#466) #51

name: Build and Publish Python Package
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install buf
uses: bufbuild/buf-action@v1
with:
setup_only: true
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Build Python package
run: proton-build
- name: Build wheel
run: proton-publish
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: python/dist/dist/