Skip to content

Commit c24a8a4

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 c24a8a4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
jobs:
11+
create-release-artifacts:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: bufbuild/buf-action@v1
19+
with:
20+
token: ${{ secrets.BUF_TOKEN }}
21+
push: true

buf.yaml

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

0 commit comments

Comments
 (0)