Skip to content

0.1.0

0.1.0 #1

Workflow file for this run

name: Publish Python Package to PyPI
# Run only when a new GitHub release is published
on:
release:
types: [published]
# Use trusted publishing (OIDC) - requires setup on PyPI
permissions:
contents: read # Needed to checkout the code
id-token: write # Needed for trusted publishing
jobs:
deploy:
runs-on: ubuntu-latest
# Define the PyPI environment for trusted publishing
environment:
name: pypi
url: https://pypi.org/p/parquet-path-rewriter # URL to your package on PyPI
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
# Use a recent Python version known to work well for building
python-version: '3.9'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build --sdist --wheel .
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# No API token needed here when using trusted publishing (permissions + environment)