Skip to content

feat/intial-v initial code #11

feat/intial-v initial code

feat/intial-v initial code #11

name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
branches:
- main
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 dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish package
run: twine upload dist/*
- name: Add execute permissions to script
run: chmod +x scripts/publish.sh
- name: Publish package
run: twine upload dist/* --non-interactive -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}