mirror of
https://github.com/neosubhamoy/pytubepp.git
synced 2025-12-20 03:29:36 +05:30
31 lines
757 B
YAML
31 lines
757 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
name: 🚀 Publish to PyPI
|
|
jobs:
|
|
pypi-publish:
|
|
name: 🎉 Upload release to PyPI
|
|
runs-on: ubuntu-latest
|
|
environment: release
|
|
permissions:
|
|
id-token: write
|
|
steps:
|
|
- name: 🚚 Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 🐍 Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: 📦 Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
|
|
- name: 🛠️ Build package
|
|
run: python3 setup.py sdist bdist_wheel
|
|
|
|
- name: 🚀 Publish package distributions to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1 |