Skip to content

Commit bec1748

Browse files
ci: push proto files to buf registry
Pushes proto files when the files change on master and when we release a new tag
1 parent 20c9dd4 commit bec1748

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Proto files
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "v[0-9]+.[0-9]+.[0-9]+*"
9+
10+
11+
jobs:
12+
create-release-artifacts:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: bufbuild/buf-action@v1
20+
with:
21+
token: ${{ secrets.BUF_TOKEN }}
22+
push: true
23+

buf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ lint:
1717
- rpc/cc/arduino/cli/commands/v1/lib.proto
1818
modules:
1919
- path: rpc
20+
name: buf.build/arduino/arduino-cli
21+

0 commit comments

Comments
 (0)