Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Build & Deploy to PyPI
on:
workflow_dispatch:
inputs:
note:
description: 'This workflow publishes to TestPyPI only. For production, create a GitHub Release.'
required: false
default: ""
version:
description: Package version (applies to TestPyPI only; for production, create a GitHub release)
required: true

release:
types: [published]
Expand Down Expand Up @@ -37,12 +36,12 @@ jobs:
run: |
uv run pytest tests

- name: Version replacement based on tag ↔️
if: github.ref_type == 'tag'
- name: Version replacement based on workflow input or release tag ↔️
if: inputs.version || github.ref_type == 'tag'
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/}
echo "Tag version: $TAG_VERSION"
uv version $TAG_VERSION
VERSION="${{ inputs.version || github.ref_name }}"
echo "Setting version: $VERSION"
uv version $VERSION

- name: Build package 📦
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "keboola.component"
version = "1.9.0" # replaced by the actual version based on the release tag in github actions
version = "0.0.0" # replaced by the actual version based on the release tag in github actions
dependencies = [
"pygelf",
"deprecated",
Expand Down