Skip to content

0.9.19: Debugging patch of ytmusicapi #21

0.9.19: Debugging patch of ytmusicapi

0.9.19: Debugging patch of ytmusicapi #21

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# To get started
#
# Go to: https://pypi.org/manage/account/publishing/
# Fill it out.
# Commit this workflow and create a release.
name: Upload Python Package
# See: https://github.com/pypa/gh-action-pypi-publish
on:
release:
types: [released]
jobs:
deploy:
environment:
name: pypi
url: https://pypi.org/p/spotify2ytmusic
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Extract version from tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Update version in pyproject.toml
run: |
sed -i "s/version = \".*\"/version = \"${RELEASE_VERSION}\"/" pyproject.toml
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}