Skip to content

feat/intial-v initial code #9

feat/intial-v initial code

feat/intial-v initial code #9

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
- name: Add execute permissions to script
run: chmod +x scripts/publish.sh
- name: Run publish script
run: scripts/publish.sh
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}