Skip to content

Commit f201dfe

Browse files
feat(pypi): automatic pypi release workflow (#144)
Currently, we have to trigger a workflow manually to release sql-compare on PyPI. We should trigger this workflow automatically whenever we create a release on sql-compare, like we do for `pytest-mergify`. Fixes MRGFY-4860
1 parent e57a2d7 commit f201dfe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Upload release to PyPI
22
on:
3-
workflow_dispatch:
3+
release:
4+
types:
5+
- published
46

57
jobs:
68
pypi-publish:
@@ -17,8 +19,6 @@ jobs:
1719
python-version: ">=3.12"
1820
- run: |
1921
pip install -r requirements-poetry.txt
20-
git tag $(poetry version --short)
21-
git push origin $(poetry version --short)
2222
poetry self add poetry-version-plugin
2323
poetry sync
2424
poetry build

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sql-compare"
3-
version = "0.1.3"
3+
version = "0"
44
description = "Compare SQL schemas"
55
authors = [{ name = "Charly Laurent", email = "[email protected]" }]
66
maintainers = [{ name = "Mergify", email = "[email protected]" }]

0 commit comments

Comments
 (0)