PR Title Check / check-title (pull_request) Successful in 6s
Test Python Package / unit-tests (pull_request) Successful in 1m4s
Code Quality Pipeline / code-quality (pull_request) Successful in 1m48s
Test Python Package / integration-tests (pull_request) Successful in 2m10s
Test Python Package / coverage-report (pull_request) Successful in 20s
Co-authored-by: Cursor <[email protected]>
39 lines
899 B
YAML
39 lines
899 B
YAML
# Gitea Actions workflow to build and publish Python package to Gitea Package Registry
|
|
|
|
name: Publish Python Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version-file: .python-version
|
|
|
|
- name: Install uv
|
|
run: pip install uv
|
|
|
|
- name: Update version in pyproject.toml to match tag
|
|
run: scripts/ci/bump-version.sh --from-tag "${GITHUB_REF##*/}"
|
|
|
|
- name: Build package
|
|
run: |
|
|
uv sync --no-dev
|
|
uv build
|
|
|
|
- name: Publish to Gitea Package Registry
|
|
env:
|
|
UV_PUBLISH_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
UV_PUBLISH_URL: ${{ vars.REPOSITORY_URL }}
|
|
run: |
|
|
uv publish
|