Skip to content

refactor(frontier): deprecate redundant request parameters from subsc… #20

refactor(frontier): deprecate redundant request parameters from subsc…

refactor(frontier): deprecate redundant request parameters from subsc… #20

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 # Fetch all history for git hash
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install buf
uses: bufbuild/[email protected]
with:
version: "1.47.2"
github_token: ${{ secrets.GITHUB_TOKEN }}
- 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/