Skip to content

Commit 51678cc

Browse files
Action to publish betterproto2_compiler (#108)
* Update release action * Update lib version
1 parent 09e49f3 commit 51678cc

File tree

5 files changed

+40
-10
lines changed

5 files changed

+40
-10
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,33 @@ jobs:
3737
uses: pypa/gh-action-pypi-publish@release/v1.12
3838
with:
3939
packages-dir: betterproto2/dist
40+
41+
publish_betterproto2_compiler:
42+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/compiler-v')
43+
name: Publish betterproto2_compiler to PyPI
44+
runs-on: ubuntu-latest
45+
46+
permissions:
47+
id-token: write
48+
49+
environment:
50+
name: pypi
51+
url: https://pypi.org/p/betterproto2_compiler
52+
53+
steps:
54+
- uses: actions/checkout@v4
55+
56+
- name: Install uv
57+
uses: astral-sh/setup-uv@v5
58+
with:
59+
version: "0.7.5"
60+
python-version: "3.10"
61+
62+
- name: Build package
63+
working-directory: ./betterproto2_compiler
64+
run: uv build
65+
66+
- name: Publish package distributions to PyPI
67+
uses: pypa/gh-action-pypi-publish@release/v1.12
68+
with:
69+
packages-dir: betterproto2_compiler/dist

betterproto2_compiler/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords = [
1515
requires-python = ">=3.10,<4.0"
1616
dependencies = [
1717
# TODO use the version from the current repo?
18-
"betterproto2[grpclib]>=0.5.1,<0.6",
18+
"betterproto2[grpclib]>=0.6.0,<0.7",
1919
"ruff~=0.9.3",
2020
"jinja2>=3.0.3",
2121
"typing-extensions>=4.7.1,<5",

betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/__init__.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

betterproto2_compiler/uv.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)