Files
quickbot_cli/.gitea/workflows/release-testpypi.yaml
Alexander Kalinovsky 86a8bdbc02
Some checks failed
CI / test (3.13) (push) Successful in 43s
Publish to TestPyPI / build-publish (release) Failing after 21s
Publish to PyPI / build-publish (release) Has been skipped
chore: update release workflows to include environment variables and streamline publishing steps
2025-08-26 20:46:23 +03:00

40 lines
993 B
YAML

# SPDX-FileCopyrightText: 2025 Alexander Kalinovsky <a@k8y.ru>
#
# SPDX-License-Identifier: Apache-2.0
name: Publish to TestPyPI
on:
release:
types: [published]
jobs:
build-publish:
# Only run on pre-releases (alpha, beta, rc)
if: contains(gitea.ref, 'rc') || contains(gitea.ref, 'a') || contains(gitea.ref, 'b')
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
env:
UV_INDEX_URL: https://test.pypi.org/simple/
UV_EXTRA_INDEX_URL: https://pypi.org/simple/
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: "3.13"
- name: Build wheel & sdist
run: |
uv build
- name: Publish (TestPyPI)
run: |
uv publish --index-url https://test.pypi.org/legacy/ --username __token__ --password ${{ secrets.TESTPYPI_API_TOKEN }}