Skip to content

pre-release prep for v0.2.0 (#112) #88

pre-release prep for v0.2.0 (#112)

pre-release prep for v0.2.0 (#112) #88

name: Build Python Package
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
jobs:
build-package:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/stapi-fastapi
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install .
- name: Build package
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags')