1.2.0
This commit is contained in:
43
.github/workflows/publish-to-pypi.yml
vendored
Normal file
43
.github/workflows/publish-to-pypi.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user