Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
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
25 changes: 16 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,33 @@ on:
- main
tags:
- '**'
pull_request:
branches:
- '**'

jobs:
packaging:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
name: Distribution
runs-on: ubuntu-latest

permissions:
id-token: write

environment:
name: pypi
url: https://pypi.org/p/betterproto2_compiler

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install poetry
run: python -m pip install poetry

- name: Build package
run: poetry build
- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.pypi }}
run: poetry publish -n

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.12
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "betterproto2_compiler"
version = "2.0.0b7"
version = "0.0.2"
description = "Compiler for betterproto2"
authors = ["Adrien Vannson <[email protected]>", "Daniel G. Taylor <[email protected]>"]
readme = "README.md"
Expand Down
Loading