Skip to content

feat/intial-v initial code #49

feat/intial-v initial code

feat/intial-v initial code #49

name: Publish Python 🐍 distributions 📦 to PyPI
on:
pull_request:
branches:
- main
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install pip packages
run: pip install twine build setuptools
- name: Build the package
run: python -m build
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true