-
Notifications
You must be signed in to change notification settings - Fork 25
69 lines (54 loc) · 1.6 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (54 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Release
on:
push:
branches:
- main
tags:
- '**'
jobs:
publish_betterproto2:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/lib-v')
name: Publish betterproto2 to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/betterproto2
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.11"
python-version: "3.10"
- name: Build package
working-directory: ./betterproto2
run: uv build --out-dir ./dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.14
with:
packages-dir: betterproto2/dist
publish_betterproto2_compiler:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/compiler-v')
name: Publish betterproto2_compiler to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/betterproto2_compiler
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.11"
python-version: "3.10"
- name: Build package
working-directory: ./betterproto2_compiler
run: uv build --out-dir ./dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.14
with:
packages-dir: betterproto2_compiler/dist