This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
tags :
8
8
- ' **'
9
- pull_request :
10
- branches :
11
- - ' **'
12
9
13
10
jobs :
14
11
packaging :
12
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
15
13
name : Distribution
16
14
runs-on : ubuntu-latest
15
+
16
+ permissions :
17
+ id-token : write
18
+
19
+ environment :
20
+ name : pypi
21
+ url : https://pypi.org/p/betterproto2_compiler
22
+
17
23
steps :
18
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
25
+
19
26
- name : Set up Python 3.10
20
27
uses : actions/setup-python@v4
21
28
with :
22
29
python-version : " 3.10"
30
+
23
31
- name : Install poetry
24
32
run : python -m pip install poetry
33
+
25
34
- name : Build package
26
35
run : poetry build
27
- - name : Publish package to PyPI
28
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
29
- env :
30
- POETRY_PYPI_TOKEN_PYPI : ${{ secrets.pypi }}
31
- run : poetry publish -n
36
+
37
+ - name : Publish package distributions to PyPI
38
+ uses : pypa/gh-action-pypi-publish@release/v1.12
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " betterproto2_compiler"
3
- version = " 2 .0.0b7 "
3
+ version = " 0 .0.2 "
4
4
description = " Compiler for betterproto2"
5
5
authors = [
" Adrien Vannson <[email protected] >" ,
" Daniel G. Taylor <[email protected] >" ]
6
6
readme = " README.md"
You can’t perform that action at this time.
0 commit comments