Spaces:
Sleeping
Sleeping
Download ytmusicapi/.github/workflows/pythonpublish.yml from veltrixcode/ytm: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/veltrixcode/ytm/resolve/main/ytmusicapi/.github/workflows/pythonpublish.yml
- Command line
-
hf download hf://spaces/veltrixcode/ytm/ytmusicapi/.github/workflows/pythonpublish.yml
-
curl -L -o pythonpublish.yml https://huggingface.co/spaces/veltrixcode/ytm/resolve/main/ytmusicapi/.github/workflows/pythonpublish.yml
626 Bytes
| name: Upload Python Package | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| id-token: write # trusted publishing | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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: Build package | |
| run: python -m build | |
| - name: Publish a Python distribution to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |