This commit is contained in:
cool.gitter.not.me.again.duh
2025-05-31 16:09:29 -06:00
parent 089cb3dc5a
commit 42411b7ffa
5 changed files with 292 additions and 694 deletions

43
.github/workflows/publish-to-pypi.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: Publish Python Package to PyPI
on:
release:
types: [published]
jobs:
build-and-publish:
name: Build and publish Python package to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# You may want to publish to a test PyPI repository first
# repository_url: https://test.pypi.org/legacy/
# package_name: deezspot-spotizerr # Ensure this matches your package name if needed explicitly