Skip to content

Commit

Permalink
feat: fixing release
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayvammi committed Dec 25, 2024
1 parent b1e05d8 commit 0835c56
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,20 @@ jobs:
ref: tag,
sha: context.sha
})
- name: Publish to PyPI
if: steps.last_tag.outcome == 'success'
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
LAST_TAG: ${{ steps.last_tag.outputs.version }}
APPLY_TAG: ${{ steps.last_tag.outputs.version }}
run: |
python scripts/update_version.py $LAST_TAG
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $APPLY_TAG
uv build
uv publish --token $PYPI_TOKEN
- name: test_installation
if: steps.last_tag.outcome == 'success'
run: uv run --with runnable --no-project -- python -c "import runnable"

- name: "Create release"
if: steps.last_tag.outcome == 'success'
Expand Down
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,19 @@ file-system = "extensions.run_log_store.file_system:FileSystemRunLogstore"
"python" = "runnable.tasks:PythonTaskType"
"shell" = "runnable.tasks:ShellTaskType"
"notebook" = "runnable.tasks:NotebookTaskType"

[tool.semantic_release]
commit_parser = "angular"
major_on_zero = true
allow_zero_version = true
tag_format = "{version}"

[tool.semantic_release.branches.main]
match = "(main|master|release-fix*)"

[tool.semantic_release.commit_parser_options]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
other_allowed_tags = ["build", "chore", "ci", "docs", "style", "refactor", "test"]
allowed_tags = ["feat", "fix", "perf", "build", "chore", "ci", "docs", "style", "refactor", "test"]
default_bump_level = 0

0 comments on commit 0835c56

Please sign in to comment.